Index: trunk/phase3/includes/api/ApiQueryBacklinks.php |
— | — | @@ -124,9 +124,9 @@ |
125 | 125 | |
126 | 126 | private function prepareSecondQuery($resultPageSet = null) { |
127 | 127 | /* SELECT page_id, page_title, page_namespace, page_is_redirect, pl_title, pl_namespace |
128 | | - * FROM pagelinks, page WHERE pl_from=page_id |
129 | | - * AND (pl_title='Foo' AND pl_namespace=0) OR (pl_title='Bar' AND pl_namespace=1) |
130 | | - * LIMIT 11 ORDER BY pl_namespace, pl_title, pl_from |
| 128 | + FROM pagelinks, page WHERE pl_from=page_id |
| 129 | + AND (pl_title='Foo' AND pl_namespace=0) OR (pl_title='Bar' AND pl_namespace=1) |
| 130 | + ORDER BY pl_namespace, pl_title, pl_from LIMIT 11 |
131 | 131 | */ |
132 | 132 | $db = $this->getDB(); |
133 | 133 | $this->addTables(array('page', $this->bl_table)); |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | $this->prepareFirstQuery($resultPageSet); |
188 | 188 | |
189 | 189 | $db = $this->getDB(); |
190 | | - $res = $this->select(__METHOD__); |
| 190 | + $res = $this->select(__METHOD__.'::firstQuery'); |
191 | 191 | |
192 | 192 | $count = 0; |
193 | 193 | $this->data = array (); |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | { |
217 | 217 | $this->resetQueryParams(); |
218 | 218 | $this->prepareSecondQuery($resultPageSet); |
219 | | - $res = $this->select(__METHOD__); |
| 219 | + $res = $this->select(__METHOD__.'::secondQuery'); |
220 | 220 | $count = 0; |
221 | 221 | while($row = $db->fetchObject($res)) |
222 | 222 | { |