Use the common code at switch end if viewing the current version of a page using...
authorPlatonides <platonides@users.mediawiki.org>
Mon, 23 Aug 2010 14:13:41 +0000 (14:13 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 23 Aug 2010 14:13:41 +0000 (14:13 +0000)
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

index 6492129..dc9d5d5 100644 (file)
@@ -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;                                                          
                                                        }
                                                }
                                        }