From 7cd5f82d3242fe043815500c06bd3420741b7288 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 6 Jan 2011 17:06:05 +0000 Subject: [PATCH] Pass 0 as 2nd parameter of an Article Constructor (2 cases) --- includes/api/ApiParse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 2656638d86..a626c77d31 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -95,7 +95,7 @@ class ApiParse extends ApiBase { // If for some reason the "oldid" is actually the current revision, it may be cached if ( $titleObj->getLatestRevID() === intval( $oldid ) ) { - $articleObj = new Article( $titleObj ); + $articleObj = new Article( $titleObj, 0 ); $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $text, $popts, $pageid ) ; @@ -142,7 +142,7 @@ class ApiParse extends ApiBase { } $wgTitle = $titleObj; - $articleObj = new Article( $titleObj ); + $articleObj = new Article( $titleObj, 0 ); if ( isset( $prop['revid'] ) ) { $oldid = $articleObj->getRevIdFetched(); } -- 2.20.1