Просмотр исходного кода

changed TEMPLATEPATH to get_template_directory

eddiemachado 13 лет назад
Родитель
Сommit
5cafd66b31
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      library/translation/translation.php

+ 2 - 2
library/translation/translation.php

@@ -10,9 +10,9 @@ URL: http://themble.com/bones/
 
 
 // Adding Translation Option
-load_theme_textdomain( 'bonestheme', TEMPLATEPATH.'/library/translation' );
+load_theme_textdomain( 'bonestheme', get_template_directory() .'/library/translation' );
 	$locale = get_locale();
-	$locale_file = TEMPLATEPATH."/library/translation/$locale.php";
+	$locale_file = get_template_directory() ."/library/translation/$locale.php";
 if ( is_readable($locale_file) ) require_once($locale_file);