Index: trunk/phase3/includes/api/ApiQueryBrokenRedirects.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | "rd_namespace", |
64 | 64 | "rd_title", |
65 | 65 | )); |
66 | | - $this->addTables("redirect AS rd JOIN page p1 ON (rd.rd_from=p1.page_id) LEFT JOIN page AS p2 ON (rd_namespace=p2.page_namespace AND rd_title=p2.page_title )"); |
| 66 | + $this->addTables("$redirect AS rd JOIN $page p1 ON (rd.rd_from=p1.page_id) LEFT JOIN $page AS p2 ON (rd_namespace=p2.page_namespace AND rd_title=p2.page_title )"); |
67 | 67 | # I don't know why these two not work ~~Alexsh |
68 | 68 | #$this->addJoinConds(array("$page AS p1" => array('JOIN', 'rd.rd_from=p1.page_id'))); |
69 | 69 | #$this->addJoinConds(array("$page AS p2" => array('LEFT JOIN', 'rd_namespace=p2.page_namespace AND rd_title=p2.page_title'))); |