$contLang = MediaWikiServices::getInstance()->getContentLanguage();
$namespaceIds = $contLang->getNamespaceIds();
$caseSensitiveNamespaces = [];
- foreach ( MWNamespace::getCanonicalNamespaces() as $index => $name ) {
+ $nsInfo = MediaWikiServices::getInstance()->getNamespaceInfo();
+ foreach ( $nsInfo->getCanonicalNamespaces() as $index => $name ) {
$namespaceIds[$contLang->lc( $name )] = $index;
- if ( !MWNamespace::isCapitalized( $index ) ) {
+ if ( !$nsInfo->isCapitalized( $index ) ) {
$caseSensitiveNamespaces[] = $index;
}
}
'wgEnableWriteAPI' => true, // Deprecated since MW 1.32
'wgFormattedNamespaces' => $contLang->getFormattedNamespaces(),
'wgNamespaceIds' => $namespaceIds,
- 'wgContentNamespaces' => MWNamespace::getContentNamespaces(),
+ 'wgContentNamespaces' => $nsInfo->getContentNamespaces(),
'wgSiteName' => $conf->get( 'Sitename' ),
'wgDBname' => $conf->get( 'DBname' ),
'wgExtraSignatureNamespaces' => $conf->get( 'ExtraSignatureNamespaces' ),
return true;
}
- /**
- * Internal modules used by ResourceLoader that cannot be depended on.
- *
- * These module(s) should have isRaw() return true, and are not
- * legal dependencies (enforced by structure/ResourcesTest).
- *
- * @deprecated since 1.32 No longer used.
- * @return array
- */
- public static function getStartupModules() {
- wfDeprecated( __METHOD__, '1.32' );
- return [];
- }
-
- /**
- * @deprecated since 1.32 No longer used.
- * @return array
- */
- public static function getLegacyModules() {
- wfDeprecated( __METHOD__, '1.32' );
- return [];
- }
-
/**
* @private For internal use by SpecialJavaScriptTest
* @since 1.32