Index: trunk/extensions/IncludeWP/IncludeWP.class.php |
— | — | @@ -147,15 +147,18 @@ |
148 | 148 | $this->parser->getOutput()->addModules( 'ext.incwp' ); |
149 | 149 | } |
150 | 150 | else { |
151 | | - global $egIncWPScriptPath; |
| 151 | + global $egIncWPScriptPath, $wgStylePath, $wgStyleVersion; |
152 | 152 | |
153 | 153 | $this->addJSLocalisation(); |
| 154 | + |
| 155 | + $this->parser->getOutput()->addHeadItem( |
| 156 | + Html::linkedScript( "$wgStylePath/common/jquery.min.js?$wgStyleVersion" ), |
| 157 | + 'jQuery' |
| 158 | + ); |
154 | 159 | |
155 | | - $this->parser->getOutput()->includeJQuery(); |
156 | | - |
157 | 160 | $this->parser->getOutput()->addHeadItem( |
158 | | - 'ext.incwp', |
159 | | - Html::linkedScript( $egIncWPScriptPath . '/ext.incwp.js' ) |
| 161 | + Html::linkedScript( $egIncWPScriptPath . '/ext.incwp.js' ), |
| 162 | + 'ext.incwp' |
160 | 163 | ); |
161 | 164 | } |
162 | 165 | } |