Index: trunk/extensions/OnlineStatus/OnlineStatus.php |
— | — | @@ -41,9 +41,6 @@ |
42 | 42 | $wgExtensionMessagesFiles['OnlineStatus'] = dirname( __FILE__ ) . '/OnlineStatus.i18n.php'; |
43 | 43 | $wgExtensionMessagesFiles['OnlineStatusMagic'] = dirname( __FILE__ ) . '/OnlineStatus.i18n.magic.php'; |
44 | 44 | |
45 | | -// Script loader |
46 | | -$wgJSAutoloadClasses['OnlineStatus'] = "extensions/OnlineStatus/OnlineStatus.js"; |
47 | | - |
48 | 45 | // FIXME: Should be a separate class file |
49 | 46 | class OnlineStatus { |
50 | 47 | // FIXME: Can't this just be in the core bit instead of the class? The init() will not have to be called |
— | — | @@ -287,7 +284,7 @@ |
288 | 285 | |
289 | 286 | if( $wgUser->isLoggedIn() && $wgUseAjax ){ |
290 | 287 | global $wgScriptPath; |
291 | | - $out->addScriptClass( 'OnlineStatus' ); |
| 288 | + $out->addScriptFile( "{$wgScriptPath}/extensions/OnlineStatus/OnlineStatus.js" ); |
292 | 289 | $out->addExtensionStyle( "{$wgScriptPath}/extensions/OnlineStatus/OnlineStatus.css" ); |
293 | 290 | } |
294 | 291 | |