Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -2,7 +2,8 @@ |
3 | 3 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
4 | 4 | |
5 | 5 | /** |
6 | | - * Tools for edit page view to aid translators. |
| 6 | + * Tools for edit page view to aid translators. This implements the so called |
| 7 | + * old style editing, which extends the normal edit page. |
7 | 8 | * |
8 | 9 | * @author Niklas Laxström |
9 | 10 | * @author Siebrand Mazeland |
— | — | @@ -205,6 +206,12 @@ |
206 | 207 | } |
207 | 208 | |
208 | 209 | TranslateUtils::injectCSS(); |
| 210 | + if ( !method_exists( $wgOut, 'includeJQuery' ) ) { |
| 211 | + $wgOut->includeJQuery(); |
| 212 | + } else { |
| 213 | + // MW 1.15 and older |
| 214 | + $wgOut->addScriptFile( TranslateUtils::assetPath( 'js/js2stopgap.js' ) ); |
| 215 | + } |
209 | 216 | return $th->getBoxes(); |
210 | 217 | } |
211 | 218 | |