r81748 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81747‎ | r81748 | r81749 >
Date:15:21, 8 February 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: Hack old LQT to hopefully work with new WikiEditor. At least this won't throw fatals any more
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/LiquidThreads/classes/View.php
@@ -1208,11 +1208,9 @@
12091209 $wgOut->addScriptFile( "$wgLiquidThreadsExtensionPath/js/lqt.toolbar.js" );
12101210 $wgOut->addExtensionStyle( "$wgLiquidThreadsExtensionPath/lqt.css?{$wgStyleVersion}" );
12111211
1212 - if ( class_exists( 'WikiEditorHooks' ) ) {
1213 - $temp = null;
1214 - WikiEditorHooks::addModules( $temp );
1215 - }
1216 -
 1212+ # Hack to make old LQT work with new WikiEditor, hopefully --catrope
 1213+ $wgOut->addModules( array( 'ext.wikiEditor', 'ext.wikiEditor.toolbar.i18n', 'jquery.wikiEditor.toolbar', 'jquery.async', 'jquery.cookie', 'jquery.ui.dialog' ) );
 1214+
12171215 self::$stylesAndScriptsDone = true;
12181216 }
12191217

Status & tagging log