Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php |
— | — | @@ -55,21 +55,14 @@ |
56 | 56 | ); |
57 | 57 | $mainPage = Title::newMainPage(); |
58 | 58 | |
59 | | - /** |
60 | | - * Namespace related preparation |
61 | | - * - wgNamespaceIds: Key-value pairs of all localized, canonical and aliases for namespaces. |
62 | | - * - wgCaseSensitiveNamespaces: Array of namespaces that are case-sensitive. |
63 | | - */ |
| 59 | + // Build wgNamespaceIds |
| 60 | + // A complete key-value pair object mapping localized, canonical and aliases for namespaces |
| 61 | + // to their numerical ids (case insensitive and with underscores) |
64 | 62 | $namespaceIds = $wgContLang->getNamespaceIds(); |
65 | | - $caseSensitiveNamespaces = array(); |
66 | 63 | foreach( MWNamespace::getCanonicalNamespaces() as $index => $name ) { |
67 | 64 | $namespaceIds[$wgContLang->lc( $name )] = $index; |
68 | | - if ( !MWNamespace::isCapitalized( $index ) ) { |
69 | | - $caseSensitiveNamespaces[] = $index; |
70 | | - } |
71 | 65 | } |
72 | 66 | |
73 | | - |
74 | 67 | $serverBits = wfParseUrl( $wgServer ); |
75 | 68 | $protocol = $serverBits ? $serverBits['scheme'] : 'http'; |
76 | 69 | |
— | — | @@ -113,7 +106,6 @@ |
114 | 107 | 'wgCookiePrefix' => $wgCookiePrefix, |
115 | 108 | 'wgResourceLoaderMaxQueryLength' => $wgResourceLoaderMaxQueryLength, |
116 | 109 | 'wgLegacyJavaScriptGlobals' => $wgLegacyJavaScriptGlobals, |
117 | | - 'wgCaseSensitiveNamespaces' => $caseSensitiveNamespaces, |
118 | 110 | ); |
119 | 111 | if ( $wgUseAjax && $wgEnableMWSuggest ) { |
120 | 112 | $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate(); |
— | — | @@ -271,4 +263,4 @@ |
272 | 264 | public function getGroup() { |
273 | 265 | return 'startup'; |
274 | 266 | } |
275 | | -} |
| 267 | +} |
\ No newline at end of file |