Use Revision::isCurrent() in ApiParse.
We have a loaded Revision object so we may use that method as well. Change-Id: Ie8bb871f8874871d7df3111d39ba23a01769cd34
This commit is contained in:
parent
e13808da00
commit
14d159af7e
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class ApiParse extends ApiBase {
|
|||
$popts->enableLimitReport( !$params['disablepp'] );
|
||||
|
||||
// If for some reason the "oldid" is actually the current revision, it may be cached
|
||||
if ( $titleObj->getLatestRevID() === intval( $oldid ) ) {
|
||||
if ( $rev->isCurrent() ) {
|
||||
// May get from/save to parser cache
|
||||
$p_result = $this->getParsedSectionOrText( $pageObj, $popts, $pageid,
|
||||
isset( $prop['wikitext'] ) ) ;
|
||||
|
|
|
|||
Loading…
Reference in a new issue