X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRevisions.php;h=0282fc593c8b38cd719f5dc25edb5fcd1e0fe3a3;hb=1470d68c4cb13800bbe76c57fe1b8238ce0e2e16;hp=9e02551f760120b6d2922e6657f3c1e575c27c23;hpb=52fbc770830559ecc53bd127a1e80ff29032c38f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 9e02551f76..0282fc593c 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -227,20 +227,6 @@ class ApiQueryRevisions extends ApiQueryRevisionsBase { ); } - // Query optimization: since we're targeting ranges of - // rev_timestamp,rev_id, if we're given an id then extract the - // corresponding timestamp from the DB. - // Note we don't use Revision::getTimestampFromId() since we don't - // have a Title to pass it and there's not any real need to create one. - if ( $params['startid'] !== null ) { - $params['start'] = $db->selectField( 'revision', 'rev_timestamp', - array( 'rev_id' => $params['startid'] ), __METHOD__ ); - } - if ( $params['endid'] !== null ) { - $params['end'] = $db->selectField( 'revision', 'rev_timestamp', - array( 'rev_id' => $params['endid'] ), __METHOD__ ); - } - $this->addTimestampWhereRange( 'rev_timestamp', $params['dir'], $params['start'], $params['end'] ); $this->addWhereRange( 'rev_id', $params['dir'],