Revert r70270; per CR comments.
authorHappy-melon <happy-melon@users.mediawiki.org>
Fri, 4 Feb 2011 00:20:14 +0000 (00:20 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Fri, 4 Feb 2011 00:20:14 +0000 (00:20 +0000)
includes/specials/SpecialWhatlinkshere.php

index 3bdd730..e0a5d34 100644 (file)
@@ -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" :