Merge pull request #1030 from vishal-singh-webkul/gli-1690

Fixed: The errors not being displayed in the AdminThemesController in the back office.
This commit is contained in:
Rohit Jain
2024-06-27 20:42:56 +05:30
committed by GitHub

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 QloApps.');
$return = false;
}