From e4e288c30cc7241ecec9f38c865f7bba0635b882 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Wed, 6 Oct 2010 10:06:34 +0000 Subject: [PATCH] 2010-10-06 Miguel de Dios * include/config_process.php: force the absolute path when include the languages translation files. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/config_process.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 219de25e68..7c00304588 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-10-06 Miguel de Dios + + * include/config_process.php: force the absolute path when include the + languages translation files. + 2010-10-05 Sancho Lerena * include/config_process.php: Remove config['debug'] from prev. commit. diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index d0e8781572..2af22b54d0 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -112,8 +112,8 @@ if (isset ($config['id_user'])){ $l10n = NULL; -if (file_exists ('./include/languages/'.$config["user_language"].'.mo')) { - $l10n = new gettext_reader (new CachedFileReader ('./include/languages/'.$config["user_language"].'.mo')); +if (file_exists ($config["homedir"] . '/include/languages/'.$config["user_language"].'.mo')) { + $l10n = new gettext_reader (new CachedFileReader ($config["homedir"] . '/include/languages/'.$config["user_language"].'.mo')); $l10n->load_tables(); }