// Removed @ inhibiter in front of a function of the installer (I want to show the errors !!!) #PSCFV-3634
This commit is contained in:
@@ -65,7 +65,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$this->setError($this->language->l('%s file is not writable (check permissions)', self::SETTINGS_FILE));
|
$this->setError($this->language->l('%s file is not writable (check permissions)', self::SETTINGS_FILE));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if (!file_exists(_PS_ROOT_DIR_.'/'.self::SETTINGS_FILE) && !is_writable(_PS_ROOT_DIR_.'/'.dirname(self::SETTINGS_FILE)))
|
elseif (!file_exists(_PS_ROOT_DIR_.'/'.self::SETTINGS_FILE) && !is_writable(_PS_ROOT_DIR_.'/'.dirname(self::SETTINGS_FILE)))
|
||||||
{
|
{
|
||||||
$this->setError($this->language->l('%s folder is not writable (check permissions)', dirname(self::SETTINGS_FILE)));
|
$this->setError($this->language->l('%s folder is not writable (check permissions)', dirname(self::SETTINGS_FILE)));
|
||||||
return false;
|
return false;
|
||||||
@@ -100,7 +100,7 @@ class InstallModelInstall extends InstallAbstractModel
|
|||||||
$settings_content = "<?php\n";
|
$settings_content = "<?php\n";
|
||||||
foreach ($settings_constants as $constant => $value)
|
foreach ($settings_constants as $constant => $value)
|
||||||
$settings_content .= "define('$constant', '".str_replace('\'', '\\\'', $value)."');\n";
|
$settings_content .= "define('$constant', '".str_replace('\'', '\\\'', $value)."');\n";
|
||||||
if (!@file_put_contents(_PS_ROOT_DIR_.'/'.self::SETTINGS_FILE, $settings_content))
|
if (!file_put_contents(_PS_ROOT_DIR_.'/'.self::SETTINGS_FILE, $settings_content))
|
||||||
{
|
{
|
||||||
$this->setError($this->language->l('Cannot write settings file'));
|
$this->setError($this->language->l('Cannot write settings file'));
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user