* (bug 6512) Link to page-specific logs on page histories
authorRob Church <robchurch@users.mediawiki.org>
Tue, 4 Jul 2006 04:08:35 +0000 (04:08 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 4 Jul 2006 04:08:35 +0000 (04:08 +0000)
RELEASE-NOTES
includes/PageHistory.php
languages/Messages.php

index 4436378..be7f0ba 100644 (file)
@@ -637,8 +637,8 @@ Some default configuration options have changed:
 * (bug 5962) Update to Italian localisation
 * (bug 6530) Update to Indonesian localisation (id) #25
 * (bug 6523) Fix SVG issue in rebuildImages.php
-* Add missing colon ([[$1]] -> [[:$1]]) to 'searchsubtitle' messages.
-
+* Add missing colon ([[$1]] -> [[:$1]]) to 'searchsubtitle' messages
+* (bug 6512) Link to page-specific logs on page histories
 
 == Compatibility ==
 
index 9502382..de00628 100644 (file)
@@ -67,12 +67,17 @@ class PageHistory {
                 * Setup page variables.
                 */
                $wgOut->setPageTitle( $this->mTitle->getPrefixedText() );
-               $wgOut->setSubtitle( wfMsg( 'revhistory' ) );
                $wgOut->setArticleFlag( false );
                $wgOut->setArticleRelated( true );
                $wgOut->setRobotpolicy( 'noindex,nofollow' );
                $wgOut->setSyndicated( true );
 
+               $logPage = Title::makeTitle( NS_SPECIAL, 'Log' );
+               $logLink = $this->mSkin->makeKnownLinkObj( $logPage, wfMsgHtml( 'viewpagelogs' ), 'page=' . $this->mTitle->getPrefixedUrl() );
+
+               $subtitle = wfMsgHtml( 'revhistory' ) . '<br />' . $logLink;
+               $wgOut->setSubtitle( $subtitle );
+
                $feedType = $wgRequest->getVal( 'feed' );
                if( $feedType ) {
                        wfProfileOut( $fname );
index c98f50a..55d4e5f 100644 (file)
@@ -559,6 +559,7 @@ You can go back and edit an existing page, or [[Special:Userlogin|log in or crea
 # History pages
 #
 'revhistory'   => 'Revision history',
+'viewpagelogs' => 'View logs for this page',
 'nohistory'            => 'There is no edit history for this page.',
 'revnotfound'  => 'Revision not found',
 'revnotfoundtext' => "The old revision of the page you asked for could not be found.