Followup r107862
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 3 Jan 2012 22:36:35 +0000 (22:36 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 3 Jan 2012 22:36:35 +0000 (22:36 +0000)
Fix bug that caused a PHP notice
Vertical-align:top on callers in the console

includes/debug/Debug.php
resources/mediawiki/mediawiki.debug.css

index 6766f8c..328bd5e 100644 (file)
@@ -98,9 +98,11 @@ class MWDebug {
 
                // Check to see if there was already a deprecation notice, so not to
                // get a duplicate warning
-               $lastLog = self::$log[ count( self::$log ) - 1 ];
-               if ( $lastLog['type'] == 'deprecated' && $lastLog['caller'] == wfGetCaller( $callerOffset + 1 ) ) {
-                       return;
+               if ( count( self::$log ) ) {
+                       $lastLog = self::$log[ count( self::$log ) - 1 ];
+                       if ( $lastLog['type'] == 'deprecated' && $lastLog['caller'] == wfGetCaller( $callerOffset + 1 ) ) {
+                               return;
+                       }
                }
 
                self::$log[] = array(
@@ -251,6 +253,8 @@ class MWDebug {
                }
 
                global $wgVersion, $wgRequestTime;
+               wfWarn( 'johnduhart is pretty cool' );
+               wfDeprecated( __METHOD__, '1.19' );
                MWDebug::log( 'MWDebug output complete' );
                $debugInfo = array(
                        'mwVersion' => $wgVersion,
index efc56b8..506db7c 100644 (file)
@@ -135,6 +135,10 @@ a.mw-debug-panelabel:visited {
        vertical-align: top;
 }
 
+#mw-debug-console tr td:last-child {
+       vertical-align: top;
+}
+
 .mw-debug-console-log {
        background-color: #add8e6;
 }