Fixed: the errors not being displayed in the AdminThemesController after invalid file has been uploaded

This commit is contained in:
vishalsingh.qlo325
2024-05-14 10:34:31 +05:30
parent 77d48a67e9
commit 18e695742c

View File

@@ -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;
}