From: Tim Starling Date: Sat, 20 Nov 2010 07:05:02 +0000 (+0000) Subject: Per CR r77020, followup to r77046: add a constant so that extensions can more easily... X-Git-Tag: 1.31.0-rc.0~33804 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=725e0f9dadc490c9ded05e337a7233b2c88d99f5;p=lhc%2Fweb%2Fwiklou.git Per CR r77020, followup to r77046: add a constant so that extensions can more easily support versions of MediaWiki without $wgResourceModules. But note that the ClickTracking style of registration would have worked as well, since an array index write works even if the variable is unset. --- diff --git a/includes/Defines.php b/includes/Defines.php index f5afd26556..32758661f8 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -210,6 +210,9 @@ define( 'MW_SUPPORTS_PARSERFIRSTCALLINIT', 1 ); define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 ); /**@}*/ +/** Support for $wgResourceModules */ +define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 ); + /**@{ * Allowed values for Parser::$mOutputType * Parameter to Parser::startExternalParse().