From: Happy-melon Date: Fri, 4 Feb 2011 00:20:14 +0000 (+0000) Subject: Revert r70270; per CR comments. X-Git-Tag: 1.31.0-rc.0~32216 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=304e80e20beb812da7a1128dbe2df621c627fc3d;p=lhc%2Fweb%2Fwiklou.git Revert r70270; per CR comments. --- diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 3bdd730eaf..e0a5d34d0b 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -264,13 +264,11 @@ class SpecialWhatLinksHere extends SpecialPage { } protected function listItem( $row, $nt, $notClose = false ) { - global $wgLang; - # local message cache static $msgcache = null; if ( $msgcache === null ) { static $msgs = array( 'isredirect', 'istemplate', 'semicolon-separator', - 'whatlinkshere-links', 'isimage', 'hist' ); + 'whatlinkshere-links', 'isimage' ); $msgcache = array(); foreach ( $msgs as $msg ) { $msgcache[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) ); @@ -305,10 +303,8 @@ class SpecialWhatLinksHere extends SpecialPage { } # Space for utilities links, with a what-links-here link provided - $tools = array(); - $tools[] = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); - $tools[] = $this->skin->linkKnown( $nt, $msgcache['hist'], array(), array( 'action' => 'history' ) ); - $wlh = Xml::wrapClass( '(' . $wgLang->pipeList( $tools ) . ')', 'mw-whatlinkshere-tools' ); + $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); + $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); return $notClose ? Xml::openElement( 'li' ) . "$link $propsText $wlh\n" :