Revision: 46137
Author:   catrope
Date:     2009-01-24 13:10:30 +0000 (Sat, 24 Jan 2009)

Log Message:
-----------
Explain why this code doesn't use LinkBatch.

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiQueryBacklinks.php

Modified: trunk/phase3/includes/api/ApiQueryBacklinks.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryBacklinks.php     2009-01-24 13:10:21 UTC 
(rev 46136)
+++ trunk/phase3/includes/api/ApiQueryBacklinks.php     2009-01-24 13:10:30 UTC 
(rev 46137)
@@ -137,6 +137,7 @@
                $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()).



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to