summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAdrian Lang <dokuwiki@adrianlang.de>2010-11-14 19:17:07 +0100
committerAdrian Lang <dokuwiki@adrianlang.de>2010-12-08 17:18:14 +0100
commit58a22bd0570451af9e62b659343dd47a26bacb3f (patch)
treece369bc81be00993ccdbe5c001b818859adfc3bc /doku.php
parent9fa736b0317d46fdfb2025895fa0288fd736ca08 (diff)
downloadrpg-58a22bd0570451af9e62b659343dd47a26bacb3f.tar.gz
rpg-58a22bd0570451af9e62b659343dd47a26bacb3f.tar.bz2
tmp: disable notices in doku.php
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php2
1 files changed, 2 insertions, 0 deletions
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);