From: Roan Kattouw Date: Tue, 13 May 2008 14:41:35 +0000 (+0000) Subject: Actually this *should* be a LEFT JOIN, or we'll be dropping log entries X-Git-Tag: 1.31.0-rc.0~47667 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=717fd5b102986b5b34c0d4137baeb670fc3e4e94;p=lhc%2Fweb%2Fwiklou.git Actually this *should* be a LEFT JOIN, or we'll be dropping log entries --- 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'); } }