From 4e729233fb351e9ab6fbfed87c0f887d80ac4bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 31 Oct 2005 09:30:55 +0000 Subject: [PATCH] Simplify code. --- ChangeLog | 3 +++ libraries/select_lang.lib.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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); ?>