Add consistent classes for the common UI elements userlinks and usertoollinks per...
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 14 Nov 2008 21:28:30 +0000 (21:28 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 14 Nov 2008 21:28:30 +0000 (21:28 +0000)
includes/Linker.php

index c48ed2d..e07eb75 100644 (file)
@@ -1047,7 +1047,7 @@ class Linker {
                } else {
                        $page = Title::makeTitle( NS_USER, $userText );
                }
-               return $this->link( $page, htmlspecialchars( $userText ) );
+               return $this->link( $page, htmlspecialchars( $userText ), array( 'class' => 'mw-userlink' ) );
        }
 
        /**
@@ -1087,7 +1087,7 @@ class Linker {
                }
 
                if( $items ) {
-                       return ' (' . implode( ' | ', $items ) . ')';
+                       return ' <span class="mw-usertoollinks">(' . implode( ' | ', $items ) . ')</span>';
                } else {
                        return '';
                }