Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php |
— | — | @@ -51,6 +51,7 @@ |
52 | 52 | $this->addTables('recentchanges'); |
53 | 53 | $this->addWhereRange('rc_timestamp', $dir, $start, $end); |
54 | 54 | $this->addWhereFld('rc_namespace', $namespace); |
| 55 | + $this->addWhereFld('rc_deleted', 0); |
55 | 56 | |
56 | 57 | if (!is_null($show)) { |
57 | 58 | $show = array_flip($show); |
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -125,8 +125,10 @@ |
126 | 126 | 'wl_namespace = rc_namespace', |
127 | 127 | 'wl_title = rc_title', |
128 | 128 | 'rc_cur_id = page_id', |
129 | | - 'wl_user' => $userId |
| 129 | + 'wl_user' => $userId, |
| 130 | + 'rc_deleted' => 0, |
130 | 131 | )); |
| 132 | + |
131 | 133 | $this->addWhereRange('rc_timestamp', $dir, $start, $end); |
132 | 134 | $this->addWhereFld('wl_namespace', $namespace); |
133 | 135 | $this->addWhereIf('rc_this_oldid=page_latest', !$allrev); |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -129,6 +129,8 @@ |
130 | 130 | list ($tbl_page, $tbl_revision) = $this->getDB()->tableNamesN('page', 'revision'); |
131 | 131 | $this->addTables("$tbl_revision LEFT OUTER JOIN $tbl_page ON page_id=rev_page"); |
132 | 132 | |
| 133 | + $this->addWhereFld('rev_deleted', 0); |
| 134 | + |
133 | 135 | // We only want pages by the specified user. |
134 | 136 | $this->addWhereFld('rev_user_text', $this->userTitle->getText()); |
135 | 137 | |
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -65,6 +65,7 @@ |
66 | 66 | 'log_params' |
67 | 67 | )); |
68 | 68 | |
| 69 | + $this->addWhereFld('log_deleted', 0); |
69 | 70 | $this->addWhereFld('log_type', $type); |
70 | 71 | $this->addWhereRange('log_timestamp', $dir, $start, $end); |
71 | 72 | $this->addOption('LIMIT', $limit +1); |