r43502 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43501‎ | r43502 | r43503 >
Date:21:28, 14 November 2008
Author:raymond
Status:ok
Tags:
Comment:
Add consistent classes for the common UI elements userlinks and usertoollinks per suggestion http://www.mediawiki.org/wiki/Special:Code/MediaWiki/43327#c689
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -1047,7 +1047,7 @@
10481048 } else {
10491049 $page = Title::makeTitle( NS_USER, $userText );
10501050 }
1051 - return $this->link( $page, htmlspecialchars( $userText ) );
 1051+ return $this->link( $page, htmlspecialchars( $userText ), array( 'class' => 'mw-userlink' ) );
10521052 }
10531053
10541054 /**
@@ -1087,7 +1087,7 @@
10881088 }
10891089
10901090 if( $items ) {
1091 - return ' (' . implode( ' | ', $items ) . ')';
 1091+ return ' <span class="mw-usertoollinks">(' . implode( ' | ', $items ) . ')</span>';
10921092 } else {
10931093 return '';
10941094 }

Status & tagging log