[-] Installer: Fix the installation when safe_mode is enabled
This commit is contained in:
1 parent
4ba0cf46e8
commit
9d9a715ff0
1 file changed
+5
@@ -391,6 +391,11 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
|
|
||||||
Context::getContext()->shop = new Shop(1);
|
Context::getContext()->shop = new Shop(1);
|
||||||
Configuration::loadConfiguration();
|
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']);
|
$id_country = Country::getByIso($data['shop_country']);
|
||||||
|
|
||||||
// Set default configuration
|
// Set default configuration
|
||||||
|
|||||||
Reference in new issue
Block a user