// Fix installer when safe_mode is enabled

This commit is contained in:
Rémi Gaillard
2013-03-21 10:56:26 +01:00
parent 530f9e1a8b
commit 1f3f53607d
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -393,7 +393,7 @@ class InstallModelInstall extends InstallAbstractModel
Configuration::loadConfiguration();
// use the old image system if the safe_mod is enabled otherwise the installer will fail with the fixtures installation
if (@ini_get('safe_mode') == 1)
if (Tools::getSafeModeStatus())
Configuration::updateGlobalValue('PS_LEGACY_IMAGES', 1);
$id_country = Country::getByIso($data['shop_country']);
@@ -606,6 +606,9 @@ class InstallModelInstall extends InstallAbstractModel
*/
public function installModules($module = null)
{
if (Tools::getSafeModeStatus())
return true;
$modules = $module ? array($module) : $this->getModulesList();
$addons_modules = $this->getAddonsModulesList();