From: Raimond Spekking Date: Fri, 26 Dec 2008 12:34:03 +0000 (+0000) Subject: * Special:Log: Add log type specific CSS classes 'mw-logline-$logtype' to 'li' elements X-Git-Tag: 1.31.0-rc.0~43765 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=7f0ea5f62ea396db1c9e6b0e1976559643ef3307;p=lhc%2Fweb%2Fwiklou.git * Special:Log: Add log type specific CSS classes 'mw-logline-$logtype' to 'li' elements --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c65a521a77..80b88eb0fa 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 3a626548dc..cdb38e4693 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -361,7 +361,8 @@ class LogEventsList { $revert = '' . $revert . ''; } - return "
  • $del$time $userLink $action $comment $revert
  • \n"; + return Xml::tags( 'li', array( "class" => "mw-logline-$row->log_type" ), + $del . $time . ' ' . $userLink . ' ' . $action . ' ' . $comment . ' ' . $revert ); } /**