r32977 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32976‎ | r32977 | r32978 >
Date:19:34, 8 April 2008
Author:raymond
Status:old
Tags:
Comment:
Add a CSS class to the headertext
Modified paths:
  • /trunk/phase3/includes/LogPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LogPage.php
@@ -131,11 +131,12 @@
132132
133133 /**
134134 * @todo handle missing log types
135 - * @static
 135+ * @param string $type logtype
 136+ * @return string Headertext of this logtype
136137 */
137138 static function logHeader( $type ) {
138139 global $wgLogHeaders;
139 - return wfMsgHtml( $wgLogHeaders[$type] );
 140+ return Xml::element( 'div', array( 'class' => 'mw-log-headertext' ), wfMsg( $wgLogHeaders[$type] ) );
140141 }
141142
142143 /**

Status & tagging log