Fixed: the errors not being displayed in the AdminThemesController after invalid file has been uploaded
This commit is contained in:
@@ -677,6 +677,8 @@ class AdminThemesControllerCore extends AdminController
|
||||
|
||||
if (!count($this->errors)) {
|
||||
Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminThemes').'&conf=6');
|
||||
} else {
|
||||
$this->redirect_after = '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1981,7 +1983,7 @@ class AdminThemesControllerCore extends AdminController
|
||||
}
|
||||
}
|
||||
if ($xml_version_too_old && !$this->_checkConfigForFeatures(array_keys(AdminThemes::$check_features))) {
|
||||
$this->errors[] .= Tools::displayError('The config.xml file has not been created for this version of PrestaShop.');
|
||||
$this->errors[] = Tools::displayError('The config.xml file has not been created for this version of PrestaShop.');
|
||||
$return = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user