Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php |
— | — | @@ -48,18 +48,6 @@ |
49 | 49 | 'combined' => array(), |
50 | 50 | 'minified' => array() |
51 | 51 | ), |
52 | | - // Code to include when js2 is not present |
53 | | - 'no_js2' => array( |
54 | | - 'raw' => array( |
55 | | - array( 'src' => '/js2/js2stopgap.js' ) |
56 | | - ), |
57 | | - 'combined' => array( |
58 | | - array( 'src' => '/js2/js2stopgap.js' ) |
59 | | - ), |
60 | | - 'minified' => array( |
61 | | - array( 'src' => '/js2/js2stopgap.min.js' ) |
62 | | - ), |
63 | | - ), |
64 | 52 | // Core functionality of extension |
65 | 53 | 'base_sets' => array( |
66 | 54 | 'raw' => array( |
— | — | @@ -232,9 +220,7 @@ |
233 | 221 | // Provide backward support for mediaWiki less than 1.17 |
234 | 222 | // by including "no_js2" js. |
235 | 223 | if ( !version_compare( floatval( $wgVersion ), '1.17', '>=') ) { |
236 | | - self::$scripts = array_merge( |
237 | | - self::$scriptFiles['no_js2'][$mode], self::$scripts |
238 | | - ); |
| 224 | + $out->includeJQuery(); |
239 | 225 | } |
240 | 226 | // Include base-set of styles |
241 | 227 | self::$styles = array_merge( |