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

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


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

Modified:
   trunk/src/common/include/extras-debug.php
Log:
handle more error types for classification

sample CSS for this:
.warning: same as .error but s/red/black/
.notice: #999999
.strict: green


Modified: trunk/src/common/include/extras-debug.php
===================================================================
--- trunk/src/common/include/extras-debug.php	2010-07-16 16:04:55 UTC (rev 10262)
+++ trunk/src/common/include/extras-debug.php	2010-07-16 16:07:18 UTC (rev 10263)
@@ -24,17 +24,26 @@
 
 	switch ($errno) {
 		case E_USER_ERROR:
+		case E_ERROR:
 			$type = 'error';
 			break;
 
 		case E_USER_WARNING:
+		case E_WARNING:
 			$type = 'warning';
 			break;
 
 		case E_USER_NOTICE:
+		case E_NOTICE:
 			$type = 'notice';
 			break;
 
+		case E_STRICT:
+		case E_USER_DEPRECATED:
+		case E_DEPRECATED:
+			$type = "strict";
+			break;
+
 		default:
 			$type = 'unknown';
 			break;




More information about the Fusionforge-commits mailing list