/** * Displays the template. */ protected function displayWithErrorHandling(array $context, array $blocks = array()) { try { parent::displayWithErrorHandling($context, $blocks); } catch (\Twig_Error_Runtime $e) { if (craft()->config->get('suppressTemplateErrors')) { // Just log it and move on craft()->errorHandler->logException($e); } else { throw $e; } } }