From 5cd4e0d300b53ca73af8257469f1b85513fce4da Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 31 Aug 2018 13:46:12 +0200 Subject: [PATCH] fixed ajax.php two call function translate --- pandora_console/ajax.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pandora_console/ajax.php b/pandora_console/ajax.php index b8b7481786..6947bfcc3a 100644 --- a/pandora_console/ajax.php +++ b/pandora_console/ajax.php @@ -77,15 +77,6 @@ $isFunctionSkins = enterprise_include_once ('include/functions_skins.php'); if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) $config["relative_path"] = enterprise_hook('skins_set_image_skin_path',array($config['id_user'])); -// Load user language -$user_language = get_user_language ($config['id_user']); - -$l10n = NULL; -if (file_exists ('./include/languages/'.$user_language.'.mo')) { - $l10n = new gettext_reader (new CachedFileReader ('./include/languages/'.$user_language.'.mo')); - $l10n->load_tables(); -} - if (isset($config['metaconsole'])) { // Not cool way of know if we are executing from metaconsole or normal console if ($config['metaconsole'])