// Fix Language::add() when a module has bad primary key name

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11553 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-21 20:28:58 +00:00
parent 21927830bf
commit f303dabffc
+3
View File
@@ -181,7 +181,10 @@ class LanguageCore extends ObjectModel
// create empty files if they not exists
$this->_generateFiles();
// @todo Since a lot of modules are not in right format with their primary keys name, just get true ...
$resUpdateSQL = $this->loadUpdateSQL();
$resUpdateSQL = true;
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
if(!Configuration::get('PS_REWRITING_SETTINGS'))
return $resUpdateSQL;