Revision: 43502
Author:   raymond
Date:     2008-11-14 21:28:30 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
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: trunk/phase3/includes/Linker.php
===================================================================
--- trunk/phase3/includes/Linker.php    2008-11-14 19:52:51 UTC (rev 43501)
+++ trunk/phase3/includes/Linker.php    2008-11-14 21:28:30 UTC (rev 43502)
@@ -1047,7 +1047,7 @@
                } 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 @@
                }
 
                if( $items ) {
-                       return ' (' . implode( ' | ', $items ) . ')';
+                       return ' <span class="mw-usertoollinks">(' . implode( ' 
| ', $items ) . ')</span>';
                } else {
                        return '';
                }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to