From 9d9a715ff0440c0be218d449014757707caa1bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Tue, 26 Feb 2013 20:10:43 +0100 Subject: [PATCH] [-] Installer: Fix the installation when safe_mode is enabled --- install-dev/models/install.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install-dev/models/install.php b/install-dev/models/install.php index 5df5332a7..be3904c3a 100644 --- a/install-dev/models/install.php +++ b/install-dev/models/install.php @@ -391,6 +391,11 @@ class InstallModelInstall extends InstallAbstractModel Context::getContext()->shop = new Shop(1); 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) + Configuration::updateGlobalValue('PS_LEGACY_IMAGES', 1); + $id_country = Country::getByIso($data['shop_country']); // Set default configuration