// Merge -> revision 8552

This commit is contained in:
rMalie
2011-09-14 08:29:10 +00:00
parent 238e740766
commit 483bcc121b
20 changed files with 541 additions and 2318 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ abstract class SelfModule
{
self::$classInModule[$currentClass] = substr(dirname($filePath), strlen($realpathModuleDir)+1);
$id_lang = (int)($cookie->id_lang);
$id_lang = (!isset($cookie) OR !is_object($cookie)) ? (int)(Configuration::get('PS_LANG_DEFAULT')) : (int)($cookie->id_lang);
$file = _PS_MODULE_DIR_.self::$classInModule[$currentClass].'/'.Language::getIsoById($id_lang).'.php';
if (file_exists($file) AND include_once($file))
$_MODULES = !empty($_MODULES) ? array_merge($_MODULES, $_MODULE) : $_MODULE;