(bug 17964) Don't make namespaceDupes fail if someone actually has an empty interwiki...
authorChad Horohoe <demon@users.mediawiki.org>
Sat, 28 Mar 2009 21:01:49 +0000 (21:01 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sat, 28 Mar 2009 21:01:49 +0000 (21:01 +0000)
RELEASE-NOTES
maintenance/namespaceDupes.php

index 9f51e2e..72e967c 100644 (file)
@@ -298,6 +298,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 17374) Special:Export no longer exports two copies of the same page
 * (bug 18190) Proper parsing in MediaWiki:Sharedupload message
 * (bug 17617) HTML cleanup for ImagePage
+* (bug 17964) namespaceDupes.php no longer fails on an empty interwiki table
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
index c5b3ce9..58615b6 100644 (file)
@@ -115,6 +115,7 @@ class NamespaceConflictChecker {
        
        private function getInterwikiList() {
                $result = $this->db->select( 'interwiki', array( 'iw_prefix' ) );
+               $prefixes = array();
                while( $row = $this->db->fetchObject( $result ) ) {
                        $prefixes[] = $row->iw_prefix;
                }