r89326 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89325‎ | r89326 | r89327 >
Date:11:46, 2 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Fix quickedit styles and scripts for mw 1.16
Modified paths:
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -1169,17 +1169,14 @@
11701170 }
11711171
11721172 public static function addModules( OutputPage $out ) {
1173 - if ( method_exists( $out, 'addModules' ) ) {
1174 - $out->addModules( array(
1175 - 'jquery.form',
1176 - 'jquery.ui.dialog',
1177 - 'jquery.autoresize',
1178 - 'ext.translate.quickedit',
1179 - ) );
1180 - } else {
1181 - // Our class
1182 - $out->addScriptFile( TranslateUtils::assetPath( 'js/quickedit.js' ) );
 1173+ TranslateUtils::addModules( $out, array(
 1174+ 'jquery.form',
 1175+ 'jquery.ui.dialog',
 1176+ 'jquery.autoresize',
 1177+ 'ext.translate.quickedit',
 1178+ ) );
11831179
 1180+ if ( !method_exists( $out, 'addModules' ) ) {
11841181 // Core jQuery
11851182 $out->includeJQuery();
11861183 $out->addScriptFile( TranslateUtils::assetPath( 'js/jquery-ui-1.7.2.custom.min.js' ) );

Status & tagging log