Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1212,6 +1212,11 @@ |
1213 | 1213 | $wgOut->addScriptFile( "$wgLiquidThreadsExtensionPath/js/lqt.toolbar.js" ); |
1214 | 1214 | $wgOut->addExtensionStyle( "$wgLiquidThreadsExtensionPath/lqt.css?{$wgStyleVersion}" ); |
1215 | 1215 | |
| 1216 | + if ( class_exists( 'WikiEditorHooks' ) ) { |
| 1217 | + $temp = null; |
| 1218 | + WikiEditorHooks::addModules( $temp ); |
| 1219 | + } |
| 1220 | + |
1216 | 1221 | self::$stylesAndScriptsDone = true; |
1217 | 1222 | } |
1218 | 1223 | |
— | — | @@ -1958,10 +1963,6 @@ |
1959 | 1964 | ) |
1960 | 1965 | ); |
1961 | 1966 | |
1962 | | - if ( wfRunHooks( 'LiquidThreadsShowThread', array( $thread, $levelNum, $totalInLevel, $options ) ) ) { |
1963 | | - self::addJSandCSS(); |
1964 | | - } |
1965 | | - |
1966 | 1967 | // Flush output to display thread |
1967 | 1968 | $this->output->addHTML( $html ); |
1968 | 1969 | $this->output->addHTML( Xml::openElement( 'div', |