From 304e80e20beb812da7a1128dbe2df621c627fc3d Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Fri, 4 Feb 2011 00:20:14 +0000 Subject: [PATCH] Revert r70270; per CR comments. --- includes/specials/SpecialWhatlinkshere.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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" : -- 2.20.1