r43332 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43331‎ | r43332 | r43333 >
Date:21:16, 9 November 2008
Author:raymond
Status:old
Tags:
Comment:
Use existing function
Modified paths:
  • /trunk/phase3/includes/ChangesList.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ChangesList.php
@@ -186,11 +186,8 @@
187187 } else {
188188 $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params );
189189 }
190 - if( $watched ) {
191 - $articlelink = "<strong class=\"mw-watched\">{$articlelink}</strong>";
192 - } else {
193 - $articlelink = '<span class="mw-rc-unwatched">' . $articlelink . '</span>';
194 - }
 190+ $articlelink = EnhancedChangesList::maybeWatchedLink( $articlelink, $watched );
 191+
195192 global $wgContLang;
196193 $articlelink .= $wgContLang->getDirMark();
197194

Follow-up revisions

RevisionCommit summaryAuthorDate
r43333self revert r43332 due to a PHP Strict Standards errorraymond21:26, 9 November 2008

Status & tagging log