diff --git a/inc/init.php b/inc/init.php index 6ef88dfa09a543e20bf0c4dd157d5fd9902832a7..6f77514571d542824f4d6912e79f626d9df907f3 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', '&');