From 725e0f9dadc490c9ded05e337a7233b2c88d99f5 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 20 Nov 2010 07:05:02 +0000 Subject: [PATCH] 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. --- includes/Defines.php | 3 +++ 1 file changed, 3 insertions(+) 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(). -- 2.20.1