From b747b0dbb132521cb35345c2513ce52231071218 Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 23 Aug 2010 14:13:41 +0000 Subject: [PATCH] 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). --- includes/Article.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 6492129de7..dc9d5d559f 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -962,13 +962,11 @@ class Article { if ( $oldid === $this->getLatest() && $this->useParserCache( false ) ) { $this->mParserOutput = $parserCache->get( $this, $parserOptions ); if ( $this->mParserOutput ) { - wfDebug( __METHOD__ . ": showing parser cache for current rev permalink\n" ); + wfDebug( __METHOD__ . ": showing parser cache for current rev permalink\n" ); $wgOut->addParserOutput( $this->mParserOutput ); $wgOut->setRevisionId( $this->mLatest ); - $this->showViewFooter(); - $this->viewUpdates(); - wfProfileOut( __METHOD__ ); - return; + $outputDone = true; + break; } } } -- 2.20.1