Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -895,7 +895,13 @@ |
896 | 896 | |
897 | 897 | $basePath = "$wgScriptPath/extensions/$wgLiquidThreadsExtensionName"; |
898 | 898 | |
899 | | - $wgOut->addScriptFile( "$basePath/jquery/js2.combined.js" ); |
| 899 | + if ( method_exists( $wgOut, 'includeJQuery' ) ) { |
| 900 | + $wgOut->includeJQuery(); |
| 901 | + $wgOut->addScriptFile( "$basePath/jquery/plugins.js" ); |
| 902 | + } else { |
| 903 | + $wgOut->addScriptFile( "$basePath/jquery/js2.combined.js" ); |
| 904 | + } |
| 905 | + |
900 | 906 | $wgOut->addExtensionStyle( "$basePath/jquery/jquery-ui-1.7.2.css" ); |
901 | 907 | |
902 | 908 | $wgOut->addScriptFile( "$basePath/jquery/jquery.autogrow.js" ); |