From bc2c8f97d80564d5dc19f1b7cb12dda63aa6cf47 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Fri, 30 Dec 2011 13:11:31 +0000 Subject: [PATCH] // Deactivate translations for AdminController in modules git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11934 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/AdminController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/AdminController.php b/classes/AdminController.php index c6166159e..832f939c3 100644 --- a/classes/AdminController.php +++ b/classes/AdminController.php @@ -1623,11 +1623,12 @@ class AdminControllerCore extends Controller $class_name_controller = $class.'controller'; // if the class is extended by a module, use modules/[module_name]/xx.php lang file - if (class_exists($class_name_controller) && Module::getModuleNameFromClass($class_name_controller)) + // @TODO this makes the BO very slow on some systems, needs to be changed + /*if (class_exists($class_name_controller) && Module::getModuleNameFromClass($class_name_controller)) { $string = str_replace('\'', '\\\'', $string); return Module::findTranslation(Module::$classInModule[$class_name_controller], $string, $class_name_controller); - } + }*/ $key = md5(str_replace('\'', '\\\'', $string));