Index: branches/wmf-deployment/extensions/LiquidThreads_alpha/classes/View.php |
— | — | @@ -790,18 +790,25 @@ |
791 | 791 | global $wgOut; |
792 | 792 | global $wgScriptPath, $wgStyleVersion; |
793 | 793 | global $wgEnableJS2system; |
| 794 | + |
| 795 | + $extRoot = "{$wgScriptPath}/extensions/LiquidThreads"; |
| 796 | + |
| 797 | + // WMF hack |
| 798 | + if ( !empty($wmgLiquidThreadsAlpha) ) { |
| 799 | + $extRoot = "{$wgScriptPath}/extensions/LiquidThreads_alpha"; |
| 800 | + } |
794 | 801 | |
795 | 802 | $wgOut->addInlineScript( 'var wgLqtMessages = ' . self::exportJSLocalisation() . ';' ); |
796 | 803 | |
797 | 804 | if ( !$wgEnableJS2system ) { |
798 | | - $wgOut->addScriptFile( "{$wgScriptPath}/extensions/LiquidThreads/jquery/js2.combined.js" ); |
799 | | - $wgOut->addExtensionStyle( "{$wgScriptPath}/extensions/LiquidThreads/jquery/jquery-ui-1.7.2.css" ); |
| 805 | + $wgOut->addScriptFile( "$extRoot/jquery/js2.combined.js" ); |
| 806 | + $wgOut->addExtensionStyle( "$extRoot/jquery/jquery-ui-1.7.2.css" ); |
800 | 807 | } |
801 | 808 | |
802 | | - $wgOut->addScriptFile( "{$wgScriptPath}/extensions/LiquidThreads/jquery/jquery.autogrow.js" ); |
| 809 | + $wgOut->addScriptFile( "$extRoot/jquery/jquery.autogrow.js" ); |
803 | 810 | |
804 | | - $wgOut->addScriptFile( "{$wgScriptPath}/extensions/LiquidThreads/lqt.js" ); |
805 | | - $wgOut->addExtensionStyle( "{$wgScriptPath}/extensions/LiquidThreads/lqt.css?{$wgStyleVersion}" ); |
| 811 | + $wgOut->addScriptFile( "$extRoot/lqt.js" ); |
| 812 | + $wgOut->addExtensionStyle( "$extRoot/lqt.css?{$wgStyleVersion}" ); |
806 | 813 | |
807 | 814 | self::$stylesAndScriptsDone = true; |
808 | 815 | } |