From: Roan Kattouw Date: Sat, 24 Jan 2009 13:10:30 +0000 (+0000) Subject: Explain why this code doesn't use LinkBatch. X-Git-Tag: 1.31.0-rc.0~43279 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=37ebf5390726d70b71afcca2f5993e5589bae7ba;p=lhc%2Fweb%2Fwiklou.git Explain why this code doesn't use LinkBatch. --- diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index 6514a7ed7c..0beb98a2f9 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -137,6 +137,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $this->addFields($this->bl_title); if($this->hasNS) $this->addFields($this->bl_ns); + // We can't use LinkBatch here because $this->hasNS may be false $titleWhere = array(); foreach($this->redirTitles as $t) $titleWhere[] = "{$this->bl_title} = ".$db->addQuotes($t->getDBKey()).