diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-07-08 01:25:25 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-07-08 01:25:25 +0200 |
commit | bad905f13d90b80add3f028b9f6c77e071e0d746 (patch) | |
tree | 60bfc1fa0a56e2eac25e320b70fef750696bb0c5 /inc/parser/xhtml.php | |
parent | f183a5b7b0f8b98ee616e6c7a93aa796b9e65d70 (diff) | |
download | rpg-bad905f13d90b80add3f028b9f6c77e071e0d746.tar.gz rpg-bad905f13d90b80add3f028b9f6c77e071e0d746.tar.bz2 |
error reporting E_ALL switch
- Adds a constant DOKU_E_LEVEL for globally overriding the error reporting level.
- Adds a file based switch for enabling E_ALL errors without changing the code.
This is convenient for developers debugging new patches. It also ensures that
the new patch will not accidentally record manual changes to the error reporting
level. To enable E_ALL errors globally, create the file 'conf/report_e_all'.
darcs-hash:20060707232525-05dcb-0f24e53783f546a83268fe40b0d8b68f4d6ccfa6.gz
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r-- | inc/parser/xhtml.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 5f6bb5539..d7a9a1ef4 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -793,9 +793,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $feed->feed_url($url); //disable warning while fetching - $elvl = error_reporting(E_ERROR); + if (!defined('DOKU_E_LEVEL')) { $elvl = error_reporting(E_ERROR); } $rc = $feed->init(); - error_reporting($elvl); + if (!defined('DOKU_E_LEVEL')) { error_reporting($elvl); } //decide on start and end if($params['reverse']){ |