[Fusionforge-commits] r10266 - trunk/src/common/include

Thorsten Glaser mirabilos at libremir.placard.fr.eu.org
Fri Jul 16 18:12:31 CEST 2010


Author: mirabilos
Date: 2010-07-16 18:12:30 +0200 (Fri, 16 Jul 2010)
New Revision: 10266

Modified:
   trunk/src/common/include/extras-debug.php
Log:
run the error handler only if sysdebug_phphandler (default true)


Modified: trunk/src/common/include/extras-debug.php
===================================================================
--- trunk/src/common/include/extras-debug.php	2010-07-16 16:11:38 UTC (rev 10265)
+++ trunk/src/common/include/extras-debug.php	2010-07-16 16:12:30 UTC (rev 10266)
@@ -110,7 +110,9 @@
 	return ($buffer . "\n</body></html>\n");
 }
 
-// set to the user defined error handler
-set_error_handler("ffErrorHandler");
+if (forge_get_config('sysdebug_phphandler')) {
+	// set to the user defined error handler
+	set_error_handler("ffErrorHandler");
+}
 
 ob_start("ffOutputHandler", 0, false);




More information about the Fusionforge-commits mailing list