fix merge of Iec98e472
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:30:43 +0000 (15:30 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:30:43 +0000 (15:30 +0200)
Change-Id: I0db2e30ce6e80d046c223bcf3e4d2569922e172f

includes/api/ApiParse.php

index 7c61291..2b3cd8d 100644 (file)
@@ -104,9 +104,8 @@ class ApiParse extends ApiBase {
                                // If for some reason the "oldid" is actually the current revision, it may be cached
                                if ( $rev->isCurrent() )  {
                                        // May get from/save to parser cache
-                                       $pageObj = WikiPage::factory( $titleObj );
-                                       $p_result = $this->getParsedContent( $pageObj, $popts, $pageid, 
-                                               isset( $prop['wikitext'] ) ) ;
+                                       $p_result = $this->getParsedContent( $pageObj, $popts,
+                                               $pageid, isset( $prop['wikitext'] ) ) ;
                                } else { // This is an old revision, so get the text differently
                                        $this->content = $rev->getContent( Revision::FOR_THIS_USER, $this->getUser() );