}
}
- /**
- * Reverse the process done by ResourceLoader::makePackedModulesString().
- *
- * @deprecated since 1.33 Use ResourceLoader::expandModuleNames instead.
- * @param string $modules Packed module name list
- * @return array Array of module names
- * @codeCoverageIgnore
- */
- public static function expandModuleNames( $modules ) {
- wfDeprecated( __METHOD__, '1.33' );
- return ResourceLoader::expandModuleNames( $modules );
- }
-
/**
* Return a dummy ResourceLoaderContext object suitable for passing into
* things that don't "really" need a context.
}
return $this->hash;
}
+
+ /**
+ * Get the request base parameters, omitting any defaults.
+ *
+ * @internal For internal use by ResourceLoaderStartUpModule only
+ * @return array
+ */
+ public function getReqBase() {
+ $reqBase = [];
+ if ( $this->getLanguage() !== self::DEFAULT_LANG ) {
+ $reqBase['lang'] = $this->getLanguage();
+ }
+ if ( $this->getSkin() !== self::DEFAULT_SKIN ) {
+ $reqBase['skin'] = $this->getSkin();
+ }
+ if ( $this->getDebug() ) {
+ $reqBase['debug'] = 'true';
+ }
+ return $reqBase;
+ }
}