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(); }