Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -103,7 +103,7 @@ |
104 | 104 | * LIMIT 11 ORDER BY pl_from |
105 | 105 | */ |
106 | 106 | $db = $this->getDB(); |
107 | | - $this->addTables(array('page', $this->bl_table)); |
| 107 | + $this->addTables(array($this->bl_table, 'page')); |
108 | 108 | $this->addWhere("{$this->bl_from}=page_id"); |
109 | 109 | if(is_null($resultPageSet)) |
110 | 110 | $this->addFields(array('page_id', 'page_title', 'page_namespace')); |
— | — | @@ -122,6 +122,7 @@ |
123 | 123 | $this->addWhereFld('page_is_redirect', 0); |
124 | 124 | $this->addOption('LIMIT', $this->params['limit'] + 1); |
125 | 125 | $this->addOption('ORDER BY', $this->bl_from); |
| 126 | + $this->addOption('STRAIGHT_JOIN'); |
126 | 127 | } |
127 | 128 | |
128 | 129 | private function prepareSecondQuery($resultPageSet = null) { |