Index: trunk/extensions/CleanChanges/CleanChanges.php |
— | — | @@ -16,10 +16,9 @@ |
17 | 17 | $dir = dirname(__FILE__) . '/'; |
18 | 18 | $wgExtensionMessagesFiles['CleanChanges'] = $dir . 'CleanChanges.i18n.php'; |
19 | 19 | $wgAutoloadClasses['NCL'] = $dir . 'CleanChanges_body.php'; |
20 | | -$wgJSAutoloadClasses['CleanChanges'] = "extensions/CleanChanges/cleanchanges.js"; |
21 | 20 | |
22 | 21 | /* Hook into code */ |
23 | | -$wgHooks['FetchChangesList'][] = 'NCL::hook' ; |
| 22 | +$wgHooks['FetchChangesList'][] = 'NCL::hook'; |
24 | 23 | |
25 | 24 | /* Extension information */ |
26 | 25 | $wgExtensionCredits['other'][] = array( |
Index: trunk/extensions/CleanChanges/CleanChanges_body.php |
— | — | @@ -28,8 +28,8 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | if ( $list instanceof NCL ) { |
32 | | - global $wgOut; |
33 | | - $wgOut->addScriptClass( 'CleanChanges' ); |
| 32 | + global $wgOut, $wgScriptPath; |
| 33 | + $wgOut->addScriptFile( "$wgScriptPath/extensions/CleanChanges/cleanchanges.js" ); |
34 | 34 | } |
35 | 35 | |
36 | 36 | /* If some list was specified, stop processing */ |
Index: trunk/extensions/CleanChanges/Filters.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | class CCFilters { |
5 | 5 | |
6 | | - public static function user( &$conds, &$tables, &$join_conds, &$opts ) { |
| 6 | + public static function user( &$conds, &$tables, &$join_conds, $opts ) { |
7 | 7 | global $wgRequest; |
8 | 8 | $opts->add( 'users', '' ); |
9 | 9 | $users = $wgRequest->getVal( 'users' ); |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | return true; |
27 | 27 | } |
28 | 28 | |
29 | | - public static function userForm( &$items, &$opts ) { |
| 29 | + public static function userForm( &$items, $opts ) { |
30 | 30 | wfLoadExtensionMessages( 'CleanChanges' ); |
31 | 31 | $opts->consumeValue( 'users' ); |
32 | 32 | global $wgRequest; |