r90233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90232‎ | r90233 | r90234 >
Date:21:18, 16 June 2011
Author:krinkle
Status:ok
Tags:
Comment:
Revert r90232.
Modified paths:
  • /trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php
@@ -55,21 +55,14 @@
5656 );
5757 $mainPage = Title::newMainPage();
5858
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)
6462 $namespaceIds = $wgContLang->getNamespaceIds();
65 - $caseSensitiveNamespaces = array();
6663 foreach( MWNamespace::getCanonicalNamespaces() as $index => $name ) {
6764 $namespaceIds[$wgContLang->lc( $name )] = $index;
68 - if ( !MWNamespace::isCapitalized( $index ) ) {
69 - $caseSensitiveNamespaces[] = $index;
70 - }
7165 }
7266
73 -
7467 $serverBits = wfParseUrl( $wgServer );
7568 $protocol = $serverBits ? $serverBits['scheme'] : 'http';
7669
@@ -113,7 +106,6 @@
114107 'wgCookiePrefix' => $wgCookiePrefix,
115108 'wgResourceLoaderMaxQueryLength' => $wgResourceLoaderMaxQueryLength,
116109 'wgLegacyJavaScriptGlobals' => $wgLegacyJavaScriptGlobals,
117 - 'wgCaseSensitiveNamespaces' => $caseSensitiveNamespaces,
118110 );
119111 if ( $wgUseAjax && $wgEnableMWSuggest ) {
120112 $vars['wgMWSuggestTemplate'] = SearchEngine::getMWSuggestTemplate();
@@ -271,4 +263,4 @@
272264 public function getGroup() {
273265 return 'startup';
274266 }
275 -}
 267+}
\ No newline at end of file

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r90232Implement mw.Title in core...krinkle21:16, 16 June 2011

Status & tagging log