// Fix installer when safe_mode is enabled

This commit is contained in:
Rémi Gaillard
2013-03-21 10:56:26 +01:00
parent cf8a621332
commit f504b3c594
2 changed files with 11 additions and 1 deletions
+7
View File
@@ -1956,6 +1956,13 @@ exit;
}
}
public static function getSafeModeStatus()
{
if (!$safe_mode = @ini_get('safe_mode'))
$safe_mode = '';
return in_array(Tools::strtolower($safe_mode), array(1, 'on'));
}
/**
* @desc extract a zip file to the given directory
* @return bool success