Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -186,11 +186,8 @@ |
187 | 187 | } else { |
188 | 188 | $articlelink = ' '. $this->skin->makeKnownLinkObj( $rc->getTitle(), '', $params ); |
189 | 189 | } |
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 = $this->maybeWatchedLink( $articlelink, $watched ); |
| 191 | + |
195 | 192 | global $wgContLang; |
196 | 193 | $articlelink .= $wgContLang->getDirMark(); |
197 | 194 | |
— | — | @@ -301,6 +298,15 @@ |
302 | 299 | return true; |
303 | 300 | } |
304 | 301 | } |
| 302 | + |
| 303 | + protected function maybeWatchedLink( $link, $watched=false ) { |
| 304 | + if( $watched ) { |
| 305 | + // FIXME: css style might be more appropriate |
| 306 | + return '<strong class="mw-watched">' . $link . '</strong>'; |
| 307 | + } else { |
| 308 | + return '<span class="mw-rc-unwatched">' . $link . '</span>'; |
| 309 | + } |
| 310 | + } |
305 | 311 | } |
306 | 312 | |
307 | 313 | |
— | — | @@ -770,15 +776,6 @@ |
771 | 777 | return $r; |
772 | 778 | } |
773 | 779 | |
774 | | - protected function maybeWatchedLink( $link, $watched=false ) { |
775 | | - if( $watched ) { |
776 | | - // FIXME: css style might be more appropriate |
777 | | - return '<strong class="mw-watched">' . $link . '</strong>'; |
778 | | - } else { |
779 | | - return '<span class="mw-rc-unwatched">' . $link . '</span>'; |
780 | | - } |
781 | | - } |
782 | | - |
783 | 780 | /** |
784 | 781 | * Generate HTML for an arrow or placeholder graphic |
785 | 782 | * @param string $dir one of '', 'd', 'l', 'r' |