X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FnamespaceDupes.php;h=6067a8267d771be941494da3c514f66378c365d9;hb=e004946b1a4eef800b940f705d9fcd9912230601;hp=e2de686cab2fc03612e4f8ab395961d6530c9459;hpb=99d52eee2179fa1951af1c216ac59288720e4f78;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index e2de686cab..6067a8267d 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -24,7 +24,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once( __DIR__ . '/Maintenance.php' ); /** * Maintenance script that checks for articles to fix after @@ -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; }