r71485 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71484‎ | r71485 | r71486 >
Date:14:13, 23 August 2010
Author:platonides
Status:ok
Tags:
Comment:
Use the common code at switch end if viewing the current version of a page using the permalink.
Title related r64876 and r64934 were not applied in that case, nor were they getting their
getRobotPolicy(), like other old revisions (noindex,nofollow).
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -962,13 +962,11 @@
963963 if ( $oldid === $this->getLatest() && $this->useParserCache( false ) ) {
964964 $this->mParserOutput = $parserCache->get( $this, $parserOptions );
965965 if ( $this->mParserOutput ) {
966 - wfDebug( __METHOD__ . ": showing parser cache for current rev permalink\n" );
 966+ wfDebug( __METHOD__ . ": showing parser cache for current rev permalink\n" );
967967 $wgOut->addParserOutput( $this->mParserOutput );
968968 $wgOut->setRevisionId( $this->mLatest );
969 - $this->showViewFooter();
970 - $this->viewUpdates();
971 - wfProfileOut( __METHOD__ );
972 - return;
 969+ $outputDone = true;
 970+ break;
973971 }
974972 }
975973 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r64876Proposed cleanup of recent LanguageConverter-related commits:...tstarling13:38, 10 April 2010
r64934Follow up r64876. Try to fix pagetitle-view-mainpage.philip13:04, 11 April 2010

Status & tagging log