From 7ff6dda4cd90c135e67a482f49dbc001fdc7aebe Mon Sep 17 00:00:00 2001 From: Krinkle Date: Thu, 16 Jun 2011 21:18:40 +0000 Subject: [PATCH] Revert r90232. --- .../ResourceLoaderStartUpModule.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index 8ce592e01c..a7c15a2cca 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -55,21 +55,14 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { ); $mainPage = Title::newMainPage(); - /** - * Namespace related preparation - * - wgNamespaceIds: Key-value pairs of all localized, canonical and aliases for namespaces. - * - wgCaseSensitiveNamespaces: Array of namespaces that are case-sensitive. - */ + // Build wgNamespaceIds + // A complete key-value pair object mapping localized, canonical and aliases for namespaces + // to their numerical ids (case insensitive and with underscores) $namespaceIds = $wgContLang->getNamespaceIds(); - $caseSensitiveNamespaces = array(); foreach( MWNamespace::getCanonicalNamespaces() as $index => $name ) { $namespaceIds[$wgContLang->lc( $name )] = $index; - if ( !MWNamespace::isCapitalized( $index ) ) { - $caseSensitiveNamespaces[] = $index; - } } - $serverBits = wfParseUrl( $wgServer ); $protocol = $serverBits ? $serverBits['scheme'] : 'http'; @@ -113,7 +106,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { 'wgCookiePrefix' => $wgCookiePrefix, 'wgResourceLoaderMaxQueryLength' => $wgResourceLoaderMaxQueryLength, 'wgLegacyJavaScriptGlobals' => $wgLegacyJavaScriptGlobals, - 'wgCaseSensitiveNamespaces' => $caseSensitiveNamespaces, ); if ( $wgUseAjax && $wgEnableMWSuggest ) { $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate(); @@ -271,4 +263,4 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { public function getGroup() { return 'startup'; } -} +} \ No newline at end of file -- 2.20.1