Skip to content

Commit

Permalink
Merge pull request #629 from shreesh-webkul/qlo-admin-error-handler
Browse files Browse the repository at this point in the history
Enable custom handler for backoffice.
  • Loading branch information
rohit053 authored Mar 15, 2023
2 parents 8f2931b + 98e6bcf commit 7e1afec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ abstract public function viewAccess();
*/
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));
Expand Down

0 comments on commit 7e1afec

Please sign in to comment.