Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -264,13 +264,11 @@ |
265 | 265 | } |
266 | 266 | |
267 | 267 | protected function listItem( $row, $nt, $notClose = false ) { |
268 | | - global $wgLang; |
269 | | - |
270 | 268 | # local message cache |
271 | 269 | static $msgcache = null; |
272 | 270 | if ( $msgcache === null ) { |
273 | 271 | static $msgs = array( 'isredirect', 'istemplate', 'semicolon-separator', |
274 | | - 'whatlinkshere-links', 'isimage', 'hist' ); |
| 272 | + 'whatlinkshere-links', 'isimage' ); |
275 | 273 | $msgcache = array(); |
276 | 274 | foreach ( $msgs as $msg ) { |
277 | 275 | $msgcache[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) ); |
— | — | @@ -305,10 +303,8 @@ |
306 | 304 | } |
307 | 305 | |
308 | 306 | # Space for utilities links, with a what-links-here link provided |
309 | | - $tools = array(); |
310 | | - $tools[] = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); |
311 | | - $tools[] = $this->skin->linkKnown( $nt, $msgcache['hist'], array(), array( 'action' => 'history' ) ); |
312 | | - $wlh = Xml::wrapClass( '(' . $wgLang->pipeList( $tools ) . ')', 'mw-whatlinkshere-tools' ); |
| 307 | + $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); |
| 308 | + $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); |
313 | 309 | |
314 | 310 | return $notClose ? |
315 | 311 | Xml::openElement( 'li' ) . "$link $propsText $wlh\n" : |