From 58a22bd0570451af9e62b659343dd47a26bacb3f Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Sun, 14 Nov 2010 19:17:07 +0100 Subject: tmp: disable notices in doku.php --- doku.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doku.php') diff --git a/doku.php b/doku.php index 1303f1ade..816acd3da 100644 --- a/doku.php +++ b/doku.php @@ -26,6 +26,7 @@ if (isset($_SERVER['HTTP_X_DOKUWIKI_DO'])){ // load and initialize the core system require_once(DOKU_INC.'inc/init.php'); +$old = error_reporting(E_ALL ^ E_NOTICE); //import variables $QUERY = trim($_REQUEST['id']); $ID = getID(); @@ -43,6 +44,7 @@ if (isset($_POST['wikitext'])) { $PRE = cleanText(substr($_POST['prefix'], 0, -1)); $SUF = cleanText($_POST['suffix']); $SUM = $_REQUEST['summary']; +error_reporting($old); //sanitize revision $REV = preg_replace('/[^0-9]/','',$REV); -- cgit v1.2.3