From: umherirrender Date: Thu, 22 Nov 2012 17:14:10 +0000 (+0100) Subject: (bug 42269) namespaceDupes.php has to use the interwiki cache X-Git-Tag: 1.31.0-rc.0~21221^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=25288bd9b53a88669c4c6f4ef139443dad4a68d0;p=lhc%2Fweb%2Fwiklou.git (bug 42269) namespaceDupes.php has to use the interwiki cache Change-Id: I8fdf3a44bef8044d064db9d4489425e20e04d004 --- diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 4197a355a5..6067a8267d 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -147,14 +147,13 @@ class NamespaceConflictChecker extends Maintenance { /** * Get the interwiki list * - * @todo Needs to respect interwiki cache! * @return Array */ private function getInterwikiList() { - $result = $this->db->select( 'interwiki', array( 'iw_prefix' ) ); + $result = Interwiki::getAllPrefixes(); $prefixes = array(); foreach ( $result as $row ) { - $prefixes[] = $row->iw_prefix; + $prefixes[] = $row['iw_prefix']; } return $prefixes; }