Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -97,25 +97,6 @@ |
98 | 98 | $this->addWhereRange('rc_timestamp', $params['dir'], $params['start'], $params['end']); |
99 | 99 | $this->addWhereFld('rc_namespace', $params['namespace']); |
100 | 100 | $this->addWhereFld('rc_deleted', 0); |
101 | | - if($params['titles']) |
102 | | - { |
103 | | - $lb = new LinkBatch; |
104 | | - foreach($params['titles'] as $t) |
105 | | - { |
106 | | - $obj = Title::newFromText($t); |
107 | | - $lb->addObj($obj); |
108 | | - if($obj->getNamespace() < 0) |
109 | | - { |
110 | | - // LinkBatch refuses these, but we need them anyway |
111 | | - if(!array_key_exists($obj->getNamespace(), $lb->data)) |
112 | | - $lb->data[$obj->getNamespace()] = array(); |
113 | | - $lb->data[$obj->getNamespace()][$obj->getDBKey()] = 1; |
114 | | - } |
115 | | - } |
116 | | - $where = $lb->constructSet('rc', $this->getDB()); |
117 | | - if($where != '') |
118 | | - $this->addWhere($where); |
119 | | - } |
120 | 101 | |
121 | 102 | if(!is_null($params['type'])) |
122 | 103 | $this->addWhereFld('rc_type', $this->parseRCType($params['type'])); |
— | — | @@ -389,9 +370,6 @@ |
390 | 371 | ApiBase :: PARAM_ISMULTI => true, |
391 | 372 | ApiBase :: PARAM_TYPE => 'namespace' |
392 | 373 | ), |
393 | | - 'titles' => array( |
394 | | - ApiBase :: PARAM_ISMULTI => true |
395 | | - ), |
396 | 374 | 'prop' => array ( |
397 | 375 | ApiBase :: PARAM_ISMULTI => true, |
398 | 376 | ApiBase :: PARAM_DFLT => 'title|timestamp|ids', |
— | — | @@ -451,7 +429,6 @@ |
452 | 430 | 'end' => 'The timestamp to end enumerating.', |
453 | 431 | 'dir' => 'In which direction to enumerate.', |
454 | 432 | 'namespace' => 'Filter log entries to only this namespace(s)', |
455 | | - 'titles' => 'Filter log entries to only these page titles', |
456 | 433 | 'prop' => 'Include additional pieces of information', |
457 | 434 | 'token' => 'Which tokens to obtain for each change', |
458 | 435 | 'show' => array ( |