Index: trunk/phase3/maintenance/dumpInterwiki.inc |
— | — | @@ -52,15 +52,10 @@ |
53 | 53 | # List of all database names |
54 | 54 | $dblist = array_map( "trim", file( "/home/wikipedia/common/all.dblist" ) ); |
55 | 55 | |
56 | | - # Special-case hostnames |
57 | | - $specials = array( |
58 | | - 'sourceswiki' => 'sources.wikipedia.org', |
59 | | - 'quotewiki' => 'wikiquote.org', |
60 | | - 'textbookwiki' => 'wikibooks.org', |
61 | | - 'sep11wiki' => 'sep11.wikipedia.org', |
62 | | - 'metawiki' => 'meta.wikimedia.org', |
63 | | - 'commonswiki' => 'commons.wikimedia.org', |
64 | | - ); |
| 56 | + # Special-case databases |
| 57 | + $specials = array_flip( |
| 58 | + array_map( "trim", |
| 59 | + file( "/home/wikipedia/common/special.dblist" ) ) ); |
65 | 60 | |
66 | 61 | # Extra interwiki links that can't be in the intermap for some reason |
67 | 62 | $extraLinks = array( |