From 7f0ea5f62ea396db1c9e6b0e1976559643ef3307 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Fri, 26 Dec 2008 12:34:03 +0000 Subject: [PATCH] * Special:Log: Add log type specific CSS classes 'mw-logline-$logtype' to 'li' elements --- RELEASE-NOTES | 2 ++ includes/LogEventsList.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 ); } /** -- 2.20.1