Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -262,11 +262,13 @@ |
263 | 263 | } |
264 | 264 | |
265 | 265 | protected function listItem( $row, $nt, $notClose = false ) { |
| 266 | + global $wgLang; |
| 267 | + |
266 | 268 | # local message cache |
267 | 269 | static $msgcache = null; |
268 | 270 | if ( $msgcache === null ) { |
269 | 271 | static $msgs = array( 'isredirect', 'istemplate', 'semicolon-separator', |
270 | | - 'whatlinkshere-links', 'isimage' ); |
| 272 | + 'whatlinkshere-links', 'isimage', 'hist' ); |
271 | 273 | $msgcache = array(); |
272 | 274 | foreach ( $msgs as $msg ) { |
273 | 275 | $msgcache[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) ); |
— | — | @@ -301,8 +303,10 @@ |
302 | 304 | } |
303 | 305 | |
304 | 306 | # Space for utilities links, with a what-links-here link provided |
305 | | - $wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); |
306 | | - $wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' ); |
| 307 | + $tools = array(); |
| 308 | + $tools[] = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] ); |
| 309 | + $tools[] = $this->skin->linkKnown( $nt, $msgcache['hist'], array(), array( 'action' => 'history' ) ); |
| 310 | + $wlh = Xml::wrapClass( '(' . $wgLang->pipeList( $tools ) . ')', 'mw-whatlinkshere-tools' ); |
307 | 311 | |
308 | 312 | return $notClose ? |
309 | 313 | Xml::openElement( 'li' ) . "$link $propsText $wlh\n" : |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -120,6 +120,7 @@ |
121 | 121 | easily replicated by custom user scripts for those who really want it. |
122 | 122 | * Non-file pages can no longer be moved to the file namespace, nor vice versa. |
123 | 123 | * (bug 671) The <dfn> element has been whitelisted in user input. |
| 124 | +* (bug 24563) Entries on Special:WhatLinksHere now have a link to their history |
124 | 125 | |
125 | 126 | === Bug fixes in 1.17 === |
126 | 127 | * (bug 17560) Half-broken deletion moved image files to deletion archive |