Index: trunk/extensions/CentralNotice/special/SpecialBannerController.php |
— | — | @@ -47,7 +47,8 @@ |
48 | 48 | |
49 | 49 | $js = $this->getScriptFunctions() . $this->getToggleScripts(); |
50 | 50 | $js .= <<<JAVASCRIPT |
51 | | -( function( $ ) { |
| 51 | +( function( $, mw ) { mw.loader.using( 'mediawiki.util', function () { |
| 52 | + |
52 | 53 | $.ajaxSetup({ cache: true }); |
53 | 54 | $.centralNotice = { |
54 | 55 | data: { |
— | — | @@ -166,7 +167,7 @@ |
167 | 168 | } |
168 | 169 | } ); |
169 | 170 | |
170 | | -} )( jQuery ); |
| 171 | +} ); } )( jQuery, mediaWiki ); |
171 | 172 | JAVASCRIPT; |
172 | 173 | return $js; |
173 | 174 | |