(bug 41582) Show "Page information" toolbox link to info action also in history etc.
authorAlex Monk <krenair@gmail.com>
Wed, 31 Oct 2012 16:13:10 +0000 (16:13 +0000)
committerAlex Monk <krenair@gmail.com>
Wed, 31 Oct 2012 16:13:10 +0000 (16:13 +0000)
Change-Id: I831e3ba1c5ca0200e52a0e075e34c6de7c9103ef

includes/SkinTemplate.php

index 5a32d47..a2e6b99 100644 (file)
@@ -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()