// 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
This commit is contained in:
tDidierjean
2011-12-30 13:11:31 +00:00
parent e3ccdae6d2
commit bc2c8f97d8
+3 -2
View File
@@ -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));