r81470 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81469‎ | r81470 | r81471 >
Date:17:32, 3 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed jQuery inclusion for 1.16
Modified paths:
  • /trunk/extensions/IncludeWP/IncludeWP.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IncludeWP/IncludeWP.class.php
@@ -147,15 +147,18 @@
148148 $this->parser->getOutput()->addModules( 'ext.incwp' );
149149 }
150150 else {
151 - global $egIncWPScriptPath;
 151+ global $egIncWPScriptPath, $wgStylePath, $wgStyleVersion;
152152
153153 $this->addJSLocalisation();
 154+
 155+ $this->parser->getOutput()->addHeadItem(
 156+ Html::linkedScript( "$wgStylePath/common/jquery.min.js?$wgStyleVersion" ),
 157+ 'jQuery'
 158+ );
154159
155 - $this->parser->getOutput()->includeJQuery();
156 -
157160 $this->parser->getOutput()->addHeadItem(
158 - 'ext.incwp',
159 - Html::linkedScript( $egIncWPScriptPath . '/ext.incwp.js' )
 161+ Html::linkedScript( $egIncWPScriptPath . '/ext.incwp.js' ),
 162+ 'ext.incwp'
160163 );
161164 }
162165 }

Status & tagging log