Add a CSS class to the headertext
authorRaimond Spekking <raymond@users.mediawiki.org>
Tue, 8 Apr 2008 19:34:43 +0000 (19:34 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Tue, 8 Apr 2008 19:34:43 +0000 (19:34 +0000)
includes/LogPage.php

index 0a3537c..a3c8b27 100644 (file)
@@ -131,11 +131,12 @@ class LogPage {
 
        /**
         * @todo handle missing log types
-        * @static
+        * @param string $type logtype
+        * @return string Headertext of this logtype
         */
        static function logHeader( $type ) {
                global $wgLogHeaders;
-               return wfMsgHtml( $wgLogHeaders[$type] );
+               return Xml::element( 'div', array( 'class' => 'mw-log-headertext' ), wfMsg( $wgLogHeaders[$type] ) );
        }
 
        /**