Revert to r34430 in order to revert r34431 which is breaking the site (unindexed...
[lhc/web/wiklou.git] / includes / api / ApiQueryUserContributions.php
index 11eff3c..21ceb27 100644 (file)
@@ -131,10 +131,8 @@ class ApiQueryContributions extends ApiQueryBase {
 
                //We're after the revision table, and the corresponding page row for
                //anything we retrieve.
-               $this->addJoin(
-                       array('revision', 'page'),
-                       array(ApiQueryBase::LEFT_JOIN),
-                       array('page_id=rev_page'));
+               list ($tbl_page, $tbl_revision) = $this->getDB()->tableNamesN('page', 'revision');
+               $this->addTables("$tbl_revision LEFT OUTER JOIN $tbl_page ON page_id=rev_page");
 
                $this->addWhereFld('rev_deleted', 0);
                // We only want pages by the specified users.