Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -204,7 +204,7 @@ |
205 | 205 | $pageSet = $this->getPageSet(); |
206 | 206 | $this->titles = $pageSet->getGoodTitles(); |
207 | 207 | $this->missing = $pageSet->getMissingTitles(); |
208 | | - $this->everything = array_merge($this->titles, $this->missing); |
| 208 | + $this->everything = $this->titles + $this->missing; |
209 | 209 | $result = $this->getResult(); |
210 | 210 | |
211 | 211 | $this->pageRestrictions = $pageSet->getCustomField('page_restrictions'); |
— | — | @@ -283,7 +283,7 @@ |
284 | 284 | if (isset($this->protections[$title->getNamespace()][$title->getDBkey()])) |
285 | 285 | $pageInfo['protection'] = |
286 | 286 | $this->protections[$title->getNamespace()][$title->getDBkey()]; |
287 | | - $result->setIndexedTagName($pageInfo['protection'], 'pr'); |
| 287 | + $this->getResult()->setIndexedTagName($pageInfo['protection'], 'pr'); |
288 | 288 | } |
289 | 289 | if($this->fld_talkid && isset($this->talkids[$title->getNamespace()][$title->getDBKey()])) |
290 | 290 | $pageInfo['talkid'] = $this->talkids[$title->getNamespace()][$title->getDBKey()]; |
— | — | @@ -308,7 +308,7 @@ |
309 | 309 | $db = $this->getDB(); |
310 | 310 | |
311 | 311 | // Get normal protections for existing titles |
312 | | - $this->addTables('page_restrictions', 'page'); |
| 312 | + $this->addTables(array('page_restrictions', 'page')); |
313 | 313 | $this->addWhere('page_id=pr_page'); |
314 | 314 | $this->addFields(array('pr_page', 'pr_type', 'pr_level', |
315 | 315 | 'pr_expiry', 'pr_cascade', 'page_namespace', |
— | — | @@ -401,7 +401,7 @@ |
402 | 402 | $res = $this->select(__METHOD__); |
403 | 403 | while($row = $db->fetchObject($res)) { |
404 | 404 | $source = Title::makeTitle($row->page_namespace, $row->page_title); |
405 | | - $this->protections[$row->pt_namespace][$row->pt_title][] = array( |
| 405 | + $this->protections[$row->tl_namespace][$row->tl_title][] = array( |
406 | 406 | 'type' => $row->pr_type, |
407 | 407 | 'level' => $row->pr_level, |
408 | 408 | 'expiry' => Block::decodeExpiry($row->pr_expiry, TS_ISO_8601), |