'log_params'
));
+ $this->addWhereFld('log_deleted', 0);
$this->addWhereFld('log_type', $type);
$this->addWhereRange('log_timestamp', $dir, $start, $end);
$this->addOption('LIMIT', $limit +1);
$this->addTables('recentchanges');
$this->addWhereRange('rc_timestamp', $dir, $start, $end);
$this->addWhereFld('rc_namespace', $namespace);
+ $this->addWhereFld('rc_deleted', 0);
if (!is_null($show)) {
$show = array_flip($show);
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 user.
$this->addWhereFld('rev_user_text', $this->userTitle->getText());
'wl_namespace = rc_namespace',
'wl_title = rc_title',
'rc_cur_id = page_id',
- 'wl_user' => $userId
+ 'wl_user' => $userId,
+ 'rc_deleted' => 0,
));
+
$this->addWhereRange('rc_timestamp', $dir, $start, $end);
$this->addWhereFld('wl_namespace', $namespace);
$this->addWhereIf('rc_this_oldid=page_latest', !$allrev);