From 2a9dfc002181309fc15d45baec3a3bbf92064e32 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 31 Oct 2012 16:13:10 +0000 Subject: [PATCH] (bug 41582) Show "Page information" toolbox link to info action also in history etc. Change-Id: I831e3ba1c5ca0200e52a0e075e34c6de7c9103ef --- includes/SkinTemplate.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 5a32d47138..a2e6b99f49 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1177,11 +1177,6 @@ class SkinTemplate extends Skin { ); } - $nav_urls['info'] = array( - 'text' => $this->msg( 'pageinfo-toolboxlink' )->text(), - 'href' => $out->getTitle()->getLocalURL( "action=info" ) - ); - // Use the copy of revision ID in case this undocumented, shady hook tries to mess with internals wfRunHooks( 'SkinTemplateBuildNavUrlsNav_urlsAfterPermalink', array( &$this, &$nav_urls, &$revid, &$revid ) ); @@ -1191,6 +1186,12 @@ class SkinTemplate extends Skin { $nav_urls['whatlinkshere'] = array( 'href' => SpecialPage::getTitleFor( 'Whatlinkshere', $this->thispage )->getLocalUrl() ); + + $nav_urls['info'] = array( + 'text' => $this->msg( 'pageinfo-toolboxlink' )->text(), + 'href' => $out->getTitle()->getLocalURL( "action=info" ) + ); + if ( $this->getTitle()->getArticleID() ) { $nav_urls['recentchangeslinked'] = array( 'href' => SpecialPage::getTitleFor( 'Recentchangeslinked', $this->thispage )->getLocalUrl() -- 2.20.1