Explain why this code doesn't use LinkBatch.
authorRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 Jan 2009 13:10:30 +0000 (13:10 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sat, 24 Jan 2009 13:10:30 +0000 (13:10 +0000)
includes/api/ApiQueryBacklinks.php

index 6514a7e..0beb98a 100644 (file)
@@ -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()).