diff --git a/ChangeLog b/ChangeLog index f4e57539d..9346ce9ad 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-10-31 Michal Čihař + * libraries/select_lang.lib.php: Simplify code. + 2005-10-30 Michal Čihař * lang/slovak: Update, thanks to Ivan Kuriscak - shylauda69. * lang/*: Remove duplicite message. diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php index c9d4ada0f..25f730a02 100644 --- a/libraries/select_lang.lib.php +++ b/libraries/select_lang.lib.php @@ -18,7 +18,7 @@ require_once('./libraries/grab_globals.lib.php'); * Define the path to the translations directory and get some variables * from system arrays if 'register_globals' is set to 'off' */ -$lang_path = 'lang/'; +$lang_path = './lang/'; /** @@ -316,5 +316,5 @@ if (!isset($convcharset) || empty($convcharset)) { // 5. Defines the associated filename and load the translation $lang_file = $lang_path . $available_languages[$lang][1] . '.inc.php'; -require_once('./' . $lang_file); +require_once($lang_file); ?>