From: Rob Church Date: Tue, 4 Jul 2006 04:08:35 +0000 (+0000) Subject: * (bug 6512) Link to page-specific logs on page histories X-Git-Tag: 1.31.0-rc.0~56427 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=8c48147f69b76d5481dc2e92b1532fc38a7526be;p=lhc%2Fweb%2Fwiklou.git * (bug 6512) Link to page-specific logs on page histories --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4436378139..be7f0ba5c7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/PageHistory.php b/includes/PageHistory.php index 950238290c..de00628542 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -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' ) . '
' . $logLink; + $wgOut->setSubtitle( $subtitle ); + $feedType = $wgRequest->getVal( 'feed' ); if( $feedType ) { wfProfileOut( $fname ); diff --git a/languages/Messages.php b/languages/Messages.php index c98f50af91..55d4e5fede 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -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.