Index: trunk/phase3/includes/Defines.php |
— | — | @@ -210,6 +210,9 @@ |
211 | 211 | define( 'MW_SUPPORTS_LOCALISATIONCACHE', 1 ); |
212 | 212 | /**@}*/ |
213 | 213 | |
| 214 | +/** Support for $wgResourceModules */ |
| 215 | +define( 'MW_SUPPORTS_RESOURCE_MODULES', 1 ); |
| 216 | + |
214 | 217 | /**@{ |
215 | 218 | * Allowed values for Parser::$mOutputType |
216 | 219 | * Parameter to Parser::startExternalParse(). |
Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | $wgExtensionAliasesFiles['SemanticForms'] = $sfgIP . '/languages/SF_Aliases.php'; |
119 | 119 | |
120 | 120 | // register client-side modules |
121 | | -if ( isset( $wgResourceModules ) ) { |
| 121 | +if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) { |
122 | 122 | $sfgResourceTemplate = array( |
123 | 123 | 'localBasePath' => $sfgIP, |
124 | 124 | 'remoteExtPath' => 'SemanticForms' |