From: Chad Horohoe Date: Sat, 28 Mar 2009 21:01:49 +0000 (+0000) Subject: (bug 17964) Don't make namespaceDupes fail if someone actually has an empty interwiki... X-Git-Tag: 1.31.0-rc.0~42307 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=a55c0c8f495e11f4429024a623f64159ce9c0fc9;p=lhc%2Fweb%2Fwiklou.git (bug 17964) Don't make namespaceDupes fail if someone actually has an empty interwiki table. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9f51e2e99a..72e967c1cf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index c5b3ce9681..58615b6bf8 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -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; }