Index: trunk/extensions/LiquidThreads/LiquidThreads.php |
— | — | @@ -172,6 +172,9 @@ |
173 | 173 | $wgAutoloadClasses['ApiThreadAction'] = "$dir/api/ApiThreadAction.php"; |
174 | 174 | $wgAPIModules['threadaction'] = 'ApiThreadAction'; |
175 | 175 | |
| 176 | +// Name of the extension (wmf-specific, for splitting to versions) |
| 177 | +$wgLiquidThreadsExtensionName = 'LiquidThreads'; |
| 178 | + |
176 | 179 | /** CONFIGURATION SECTION */ |
177 | 180 | |
178 | 181 | $wgDefaultUserOptions['lqt-watch-threads'] = true; |
Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -790,18 +790,21 @@ |
791 | 791 | global $wgOut; |
792 | 792 | global $wgScriptPath, $wgStyleVersion; |
793 | 793 | global $wgEnableJS2system; |
| 794 | + global $wgLiquidThreadsExtensionName; |
794 | 795 | |
795 | 796 | $wgOut->addInlineScript( 'var wgLqtMessages = ' . self::exportJSLocalisation() . ';' ); |
796 | 797 | |
| 798 | + $basePath = "$wgScriptPath/extensions/$wgLiquidThreadsExtensionName"; |
| 799 | + |
797 | 800 | 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" ); |
| 801 | + $wgOut->addScriptFile( "$basePath/jquery/js2.combined.js" ); |
| 802 | + $wgOut->addExtensionStyle( "$basePath/jquery/jquery-ui-1.7.2.css" ); |
800 | 803 | } |
801 | 804 | |
802 | | - $wgOut->addScriptFile( "{$wgScriptPath}/extensions/LiquidThreads/jquery/jquery.autogrow.js" ); |
| 805 | + $wgOut->addScriptFile( "$basePath/jquery/jquery.autogrow.js" ); |
803 | 806 | |
804 | | - $wgOut->addScriptFile( "{$wgScriptPath}/extensions/LiquidThreads/lqt.js" ); |
805 | | - $wgOut->addExtensionStyle( "{$wgScriptPath}/extensions/LiquidThreads/lqt.css?{$wgStyleVersion}" ); |
| 807 | + $wgOut->addScriptFile( "$basePath/lqt.js" ); |
| 808 | + $wgOut->addExtensionStyle( "$basePath/lqt.css?{$wgStyleVersion}" ); |
806 | 809 | |
807 | 810 | self::$stylesAndScriptsDone = true; |
808 | 811 | } |