From 7af8c74e1a799f26ba81fc95d8f0f2dbead52bfc Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 5 Oct 2012 15:30:43 +0200 Subject: [PATCH] fix merge of Iec98e472 Change-Id: I0db2e30ce6e80d046c223bcf3e4d2569922e172f --- includes/api/ApiParse.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 7c6129103a..2b3cd8d175 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -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() ); -- 2.20.1