From: Raimond Spekking Date: Fri, 14 Nov 2008 21:28:30 +0000 (+0000) Subject: Add consistent classes for the common UI elements userlinks and usertoollinks per... X-Git-Tag: 1.31.0-rc.0~44339 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=86731f7ca111e74b227aafe7f844eaddf039eb10;p=lhc%2Fweb%2Fwiklou.git Add consistent classes for the common UI elements userlinks and usertoollinks per suggestion mediawiki.org/wiki/Special:Code/MediaWiki/43327#c689 --- diff --git a/includes/Linker.php b/includes/Linker.php index c48ed2d8af..e07eb75e87 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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 ' (' . implode( ' | ', $items ) . ')'; } else { return ''; }