From: Alexandre Emsenhuber Date: Sun, 1 Aug 2010 09:20:30 +0000 (+0000) Subject: * (bug 24563) Entries on Special:WhatLinksHere now have a link to their history X-Git-Tag: 1.31.0-rc.0~35806 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=a6b299d667bcb7b2999a3bb24b01e3aa592b90bf;p=lhc%2Fweb%2Fwiklou.git * (bug 24563) Entries on Special:WhatLinksHere now have a link to their history --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 14dd42b1fa..c450da7a91 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -120,6 +120,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN easily replicated by custom user scripts for those who really want it. * Non-file pages can no longer be moved to the file namespace, nor vice versa. * (bug 671) The element has been whitelisted in user input. +* (bug 24563) Entries on Special:WhatLinksHere now have a link to their history === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/includes/specials/SpecialWhatlinkshere.php b/includes/specials/SpecialWhatlinkshere.php index 23651b99a2..ac2f931e61 100644 --- a/includes/specials/SpecialWhatlinkshere.php +++ b/includes/specials/SpecialWhatlinkshere.php @@ -262,11 +262,13 @@ 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' ); + 'whatlinkshere-links', 'isimage', 'hist' ); $msgcache = array(); foreach ( $msgs as $msg ) { $msgcache[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) ); @@ -301,8 +303,10 @@ class SpecialWhatLinksHere extends SpecialPage { } # Space for utilities links, with a what-links-here link provided - $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); - $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); + $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' ); return $notClose ? Xml::openElement( 'li' ) . "$link $propsText $wlh\n" :