When I set opencart to maintenace mode I get the following error:
Fatal error: Call to a member function getLayout() on a non-object in
../catalog/controller/common/header.php on line 195
The code at line 195 is:
$layout_id = $this->model_design_layout->getLayout($route);
I want to ignore this line when the site is in maintenance mode, how can I achieve this?