Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19608
Modified Files:
serendipity_config.inc.php
Log Message:
Don't show E_NOTICE, except when ['production'] is set to 'debug'
Index: serendipity_config.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_config.inc.php,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- serendipity_config.inc.php 10 Dec 2004 16:47:29 -0000 1.115
+++ serendipity_config.inc.php 10 Dec 2004 17:02:54 -0000 1.116
@@ -24,10 +24,13 @@
// Setting this to 'false' will enable debugging output. All alpa/beta/cvs snapshot versions will emit debug information by default. To increase the debug level (to enable Smarty debugging), set this flag to 'debug'.
$serendipity['production'] = (preg_match('@\-(alpha|beta|cvs)@', $serendipity['version']) ? false : true);
-if ($serendipity['production'] == true) {
- error_reporting(E_ALL & ~E_NOTICE);
-} else {
- error_reporting(E_ALL);
+# Set error reporting
+error_reporting(E_ALL & ~E_NOTICE);
+
+if ($serendipity['production'] !== true) {
+ if ( $serendipity['production'] == 'debug' ) {
+ error_reporting(E_ALL);
+ }
@ini_set('display_errors', 'on');
}
|