From 53b17f7e34884e3181371107a2a1ad0007bdfabf Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 13 Apr 2009 12:39:12 +0000 Subject: [PATCH] (bug 18317) Bolded selections in 1 | 3 | etc days on RecentChanges now use instead of hardcoded styles. Based on patch by jidanni. --- RELEASE-NOTES | 2 ++ includes/specials/SpecialRecentchanges.php | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c39ec6b2ca..223ac7eb37 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -343,6 +343,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Fixed a bug caused by LanguageConverter.php, which brings an abnormal '}-' after some parsed math syntax. * (bug 18441) rebuildrecentchanges.inc no longer ignores $wgLogRestrictions +* (bug 18317) Bolded selections in 1 | 3 | etc days on RecentChanges now use + instead of hardcoded styles == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 4d41608c92..78843a802a 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -597,8 +597,12 @@ class SpecialRecentChanges extends SpecialPage { global $wgUser; $sk = $wgUser->getSkin(); $params = $override + $options; - return $sk->link( $this->getTitle(), htmlspecialchars( $title ), - ( $active ? array( 'style'=>'font-weight: bold;' ) : array() ), $params, array( 'known' ) ); + if ( $active ) { + return $sk->link( $this->getTitle(), '' . htmlspecialchars( $title ) . '', + array(), $params, array( 'known' ) ); + } else { + return $sk->link( $this->getTitle(), htmlspecialchars( $title ), array() , $params, array( 'known' ) ); + } } /** -- 2.20.1