From: John Du Hart Date: Tue, 3 Jan 2012 22:36:35 +0000 (+0000) Subject: Followup r107862 X-Git-Tag: 1.31.0-rc.0~25572 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=9a96f9f3236b323bf10cdb1853b2593537993dfe;p=lhc%2Fweb%2Fwiklou.git Followup r107862 Fix bug that caused a PHP notice Vertical-align:top on callers in the console --- diff --git a/includes/debug/Debug.php b/includes/debug/Debug.php index 6766f8caf9..328bd5e0be 100644 --- a/includes/debug/Debug.php +++ b/includes/debug/Debug.php @@ -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, diff --git a/resources/mediawiki/mediawiki.debug.css b/resources/mediawiki/mediawiki.debug.css index efc56b818f..506db7cad1 100644 --- a/resources/mediawiki/mediawiki.debug.css +++ b/resources/mediawiki/mediawiki.debug.css @@ -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; }