(bug 17964) Don't make namespaceDupes fail if someone actually has an empty interwiki table.

This commit is contained in:
Chad Horohoe 2009-03-28 21:01:49 +00:00
parent 549b1688cc
commit a55c0c8f49
2 changed files with 2 additions and 0 deletions

View 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

View 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;
}