enable custom handler in admin controller

This commit is contained in:
Shreesh Arora
2023-03-14 18:44:03 +05:30
parent 8f2931bff1
commit 98e6bcf54a

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));