From c53ea5f2d3d1019fd4e1956796bc329af499a86d Mon Sep 17 00:00:00 2001
From: andi <andi@splitbrain.org>
Date: Wed, 30 Mar 2005 21:15:10 +0200
Subject: [PATCH] fixed error reporting (#216)

darcs-hash:20050330191510-9977f-f129b8028ca701e0d23b3bc824510b8c300882cb.gz
---
 inc/init.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/init.php b/inc/init.php
index 6ef88dfa0..6f7751457 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -6,6 +6,9 @@
   // define the include path
   if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
 
+  // set up error reporting to sane values
+  error_reporting(E_ALL ^ E_NOTICE);
+
   // load the config file(s)
   require_once(DOKU_INC.'conf/dokuwiki.php');
   @include_once(DOKU_INC.'conf/local.php');
@@ -24,9 +27,6 @@
   if(!defined('DOKU_TPL')) define('DOKU_TPL',
                                   DOKU_BASE.'tpl/'.$conf['template'].'/');
 
-  // set up error reporting to sane values
-  error_reporting(E_ALL ^ E_NOTICE);
-
   // make session rewrites XHTML compliant
   ini_set('arg_separator.output', '&amp;');
 
-- 
GitLab