From: Rowan Collins Date: Sat, 21 Jan 2006 13:04:57 +0000 (+0000) Subject: When reading from meta's interwiki map, *.wikimedia.org should be set as local (e... X-Git-Tag: 1.6.0~467 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=44d31b681fc83aecc819a78662a5d75a4a8655b7;p=lhc%2Fweb%2Fwiklou.git When reading from meta's interwiki map, *.wikimedia.org should be set as local (e.g. commons). --- diff --git a/maintenance/rebuildInterwiki.inc b/maintenance/rebuildInterwiki.inc index 501daea841..bbec3083dc 100644 --- a/maintenance/rebuildInterwiki.inc +++ b/maintenance/rebuildInterwiki.inc @@ -111,7 +111,7 @@ function getRebuildInterwikiSQL() { if ( preg_match( '/^\|\s*(.*?)\s*\|\|\s*(.*?)\s*$/', $line, $matches ) ) { $prefix = strtolower( $matches[1] ); $url = $matches[2]; - if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks)\.org/', $url ) ) { + if ( preg_match( '/(wikipedia|wiktionary|wikisource|wikiquote|wikibooks|wikimedia)\.org/', $url ) ) { $local = 1; } else { $local = 0;