* Special:Log: Add log type specific CSS classes 'mw-logline-$logtype' to 'li' elements
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 26 Dec 2008 12:34:03 +0000 (12:34 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 26 Dec 2008 12:34:03 +0000 (12:34 +0000)
RELEASE-NOTES
includes/LogEventsList.php

index c65a521..80b88eb 100644 (file)
@@ -248,6 +248,8 @@ The following extensions are migrated into MediaWiki 1.14:
 * (bug 2585) HTTP 404 return code is now given for a page view if the page
   does not exist, allowing spiders and link checkers to detect broken links.
 * Special:Log: Add 'change protection' link for unprotected pages too
+* Special:Log: Add log type specific CSS classes 'mw-logline-$logtype' to
+  'li' elements
 
 === Bug fixes in 1.14 ===
 
index 3a62654..cdb38e4 100644 (file)
@@ -361,7 +361,8 @@ class LogEventsList {
                        $revert = '<span class="mw-logevent-actionlink">' . $revert . '</span>';
                }
 
-               return "<li>$del$time $userLink $action $comment $revert</li>\n";
+               return Xml::tags( 'li', array( "class" => "mw-logline-$row->log_type" ),
+                       $del . $time . ' ' . $userLink . ' ' . $action . ' ' . $comment . ' ' . $revert );
        }
 
        /**