From bac2d0d1d1defec851c85903ab6ef2e7526b508e Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Thu, 1 Jan 2009 10:33:45 +0200 Subject: [PATCH] After GeSHi, restore the original error mask, not E_ALL. --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 20eb1ec..0b6a7dd 100644 --- a/index.php +++ b/index.php @@ -443,7 +443,7 @@ elseif ($action === 'viewblob') { // GeSHi support if ($conf['geshi'] && strpos($page['path'], '.')) { - error_reporting(E_ALL ^ E_NOTICE); + $old_mask = error_reporting(E_ALL ^ E_NOTICE); require_once($conf['geshi_path']); $ext = array_pop(explode('.', $page['path'])); $lang = Geshi::get_language_name_from_extension($ext); @@ -459,7 +459,7 @@ elseif ($action === 'viewblob') { } $page['html_data'] = $geshi->parse_code(); } - error_reporting(E_ALL); + error_reporting($old_mask); } } else { -- 2.11.4.GIT