Add a class to <strong> for watched links in change lists
authorRob Church <robchurch@users.mediawiki.org>
Wed, 22 Aug 2007 05:21:59 +0000 (05:21 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 22 Aug 2007 05:21:59 +0000 (05:21 +0000)
RELEASE-NOTES
includes/ChangesList.php

index f126d2c..0cfc6ac 100644 (file)
@@ -180,6 +180,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Confirmation is now required when deleting old versions of files
 * (bug 7535) Users can now enter comments when deleting old versions of files
 * (bug 11001) Submit Special:Newpages as a GET, rather than a POST request
+* The <strong></strong> around links to watched pages in change lists now
+  has a class - "mw-watched"
 
 == Bugfixes since 1.10 ==
 
index a888c9d..bf41ae0 100644 (file)
@@ -171,7 +171,8 @@ class ChangesList {
                        ? 'rcid='.$rc->mAttribs['rc_id']
                        : '';
                $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params );
-               if($watched) $articlelink = '<strong>'.$articlelink.'</strong>';
+               if( $watched )
+                       $articlelink = "<strong class=\"mw-watched\">{$articlelink}</strong>";
                global $wgContLang;
                $articlelink .= $wgContLang->getDirMark();
 
@@ -568,7 +569,7 @@ class EnhancedChangesList extends ChangesList {
        function maybeWatchedLink( $link, $watched=false ) {
                if( $watched ) {
                        // FIXME: css style might be more appropriate
-                       return '<strong>' . $link . '</strong>';
+                       return '<strong class="mw-watched">' . $link . '</strong>';
                } else {
                        return $link;
                }