Merge pull request #629 from shreesh-webkul/qlo-admin-error-handler

Enable custom handler for backoffice.
This commit is contained in:
Rohit Jain
2023-03-15 13:28:14 +05:30
committed by GitHub

View File

@@ -93,9 +93,9 @@ abstract class ControllerCore
*/
public function init()
{
// if (_PS_MODE_DEV_ && $this->controller_type == 'admin') {
// set_error_handler(array(__CLASS__, 'myErrorHandler'));
// }
if (_PS_MODE_DEV_ && $this->controller_type == 'admin') {
set_error_handler(array(__CLASS__, 'myErrorHandler'));
}
if (!defined('_PS_BASE_URL_')) {
define('_PS_BASE_URL_', Tools::getShopDomain(true));