r62288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62287‎ | r62288 | r62289 >
Date:02:43, 11 February 2010
Author:werdna
Status:deferred
Tags:
Comment:
LiquidThreads: add compatibility with OutputPage::includeJQuery()
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -895,7 +895,13 @@
896896
897897 $basePath = "$wgScriptPath/extensions/$wgLiquidThreadsExtensionName";
898898
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+
900906 $wgOut->addExtensionStyle( "$basePath/jquery/jquery-ui-1.7.2.css" );
901907
902908 $wgOut->addScriptFile( "$basePath/jquery/jquery.autogrow.js" );

Status & tagging log