'wgUrlProtocols' => wfUrlProtocols(),
'wgArticlePath' => $conf->get( 'ArticlePath' ),
'wgScriptPath' => $conf->get( 'ScriptPath' ),
- 'wgScriptExtension' => $conf->get( 'ScriptExtension' ),
+ 'wgScriptExtension' => '.php',
'wgScript' => wfScript(),
'wgSearchType' => $conf->get( 'SearchType' ),
'wgVariantArticlePath' => $conf->get( 'VariantArticlePath' ),
'wgResourceLoaderStorageVersion' => $conf->get( 'ResourceLoaderStorageVersion' ),
'wgResourceLoaderStorageEnabled' => $conf->get( 'ResourceLoaderStorageEnabled' ),
'wgResourceLoaderLegacyModules' => self::getLegacyModules(),
+ 'wgForeignUploadTargets' => $conf->get( 'ForeignUploadTargets' ),
+ 'wgEnableUploads' => $conf->get( 'EnableUploads' ),
);
Hooks::run( 'ResourceLoaderGetConfigVars', array( &$vars ) );
$skipFunction = $module->getSkipFunction();
if ( $skipFunction !== null && !ResourceLoader::inDebugMode() ) {
- $skipFunction = $resourceLoader->filter( 'minify-js',
- $skipFunction,
- // There will potentially be lots of these little strings in the registrations
- // manifest, we don't want to blow up the startup module with
- // "/* cache key: ... */" all over it.
- /* cacheReport = */ false
- );
+ $skipFunction = ResourceLoader::filter( 'minify-js', $skipFunction );
}
$registryData[$name] = array(
'$VARS.configuration' => $this->getConfigSettings( $context ),
'$VARS.baseModulesUri' => self::getStartupModulesUrl( $context ),
) );
- $pairs['$CODE.registrations()'] = str_replace( "\n", "\n\t", trim( $this->getModuleRegistrations( $context ) ) );
+ $pairs['$CODE.registrations()'] = str_replace(
+ "\n",
+ "\n\t",
+ trim( $this->getModuleRegistrations( $context ) )
+ );
return strtr( $out, $pairs );
}