From 717fd5b102986b5b34c0d4137baeb670fc3e4e94 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 13 May 2008 14:41:35 +0000 Subject: [PATCH] Actually this *should* be a LEFT JOIN, or we'll be dropping log entries --- includes/api/ApiQueryRecentChanges.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index b6b82679f1..7740276bc8 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -166,7 +166,7 @@ class ApiQueryRecentChanges extends ApiQueryBase { if($this->fld_redirect || isset($show['redirect']) || isset($show['!redirect'])) { $this->addTables('page'); - $this->addWhere(array('page_namespace=rc_namespace', 'page_title=rc_title')); + $this->addJoinConds(array('page' => 'LEFT JOIN', array('rc_namespace=page_namespace', 'rc_title=page_title'))); $this->addFields('page_is_redirect'); } } -- 2.20.1