Page MenuHomePhabricator

bug16356.patch

Authored By
bzimport
Nov 21 2014, 10:28 PM
Size
870 B
Referenced Files
None
Subscribers
None

bug16356.patch

Index: dumpInterwiki.inc
===================================================================
--- dumpInterwiki.inc (revision 64219)
+++ dumpInterwiki.inc (working copy)
@@ -29,7 +29,7 @@
}
function getRebuildInterwikiDump() {
- global $langlist, $languageAliases, $prefixRewrites;
+ global $langlist, $languageAliases, $prefixRewrites, $wgContLang;
# Multi-language sites
# db suffix => db suffix, iw prefix, hostname
@@ -102,7 +102,8 @@
# Global iterwiki map
foreach ( $lines as $line ) {
if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(.*?)\s*$/', $line, $matches ) ) {
- $prefix = strtolower( $matches[1] );
+ $prefix = $wgContLang->lc( $matches[1] );
+ $prefix = str_replace( ' ', '_', $prefix );
$url = $matches[2];
if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks|wikimedia)\.org/', $url ) ) {
$local = 1;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4966
Default Alt Text
bug16356.patch (870 B)

Event Timeline