From 37ebf5390726d70b71afcca2f5993e5589bae7ba Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 24 Jan 2009 13:10:30 +0000 Subject: [PATCH] Explain why this code doesn't use LinkBatch. --- includes/api/ApiQueryBacklinks.php | 1 + 1 file changed, 1 insertion(+) 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()). -- 2.20.1