r79733 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79732‎ | r79733 | r79734 >
Date:17:06, 6 January 2011
Author:reedy
Status:ok
Tags:
Comment:
Pass 0 as 2nd parameter of an Article Constructor (2 cases)
Modified paths:
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -95,7 +95,7 @@
9696
9797 // If for some reason the "oldid" is actually the current revision, it may be cached
9898 if ( $titleObj->getLatestRevID() === intval( $oldid ) ) {
99 - $articleObj = new Article( $titleObj );
 99+ $articleObj = new Article( $titleObj, 0 );
100100
101101 $p_result = $this->getParsedSectionOrText( $articleObj, $titleObj, $text, $popts, $pageid ) ;
102102
@@ -142,7 +142,7 @@
143143 }
144144 $wgTitle = $titleObj;
145145
146 - $articleObj = new Article( $titleObj );
 146+ $articleObj = new Article( $titleObj, 0 );
147147 if ( isset( $prop['revid'] ) ) {
148148 $oldid = $articleObj->getRevIdFetched();
149149 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r814071.17: MFT r79454, r79455, r79456, r79536, r79727, r79733, r79773, r79774, r80...catrope19:18, 2 February 2011

Status & tagging log