Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -344,6 +344,10 @@ |
345 | 345 | $remoteModulePath = 'FlaggedRevs/modules'; |
346 | 346 | $wgResourceModules['ext.flaggedRevs.basic'] = array( |
347 | 347 | 'styles' => array( 'flaggedrevs.css' ), |
| 348 | + 'localBasePath' => $localModulePath, |
| 349 | + 'remoteExtPath' => $remoteModulePath, |
| 350 | +); |
| 351 | +$wgResourceModules['ext.flaggedRevs.advanced'] = array( |
348 | 352 | 'scripts' => array( 'flaggedrevs.js' ), |
349 | 353 | 'messages' => array( |
350 | 354 | 'revreview-toggle-show', 'revreview-toggle-hide', |
— | — | @@ -369,7 +373,7 @@ |
370 | 374 | 'remoteExtPath' => $remoteModulePath, |
371 | 375 | ); |
372 | 376 | |
373 | | -# ####### HOOK TRIGGERED FUNCTIONS ######### |
| 377 | +# ####### EVENT-HANDLER FUNCTIONS ######### |
374 | 378 | |
375 | 379 | # ######## User interface ######### |
376 | 380 | # Override current revision, add patrol links, set cache... |
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -56,7 +56,8 @@ |
57 | 57 | return true; |
58 | 58 | } |
59 | 59 | # Add main CSS & JS files |
60 | | - $wgOut->addModules( 'ext.flaggedRevs.basic' ); |
| 60 | + $wgOut->addModuleStyles( 'ext.flaggedRevs.basic' ); |
| 61 | + $wgOut->addModules( 'ext.flaggedRevs.advanced' ); |
61 | 62 | # Add review form JS for reviewers |
62 | 63 | if ( $wgUser->isAllowed( 'review' ) ) { |
63 | 64 | $wgOut->addModules( 'ext.flaggedRevs.review' ); |