Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1208,6 +1208,11 @@ |
1209 | 1209 | $wgOut->addScriptFile( "$wgLiquidThreadsExtensionPath/js/lqt.toolbar.js" ); |
1210 | 1210 | $wgOut->addExtensionStyle( "$wgLiquidThreadsExtensionPath/lqt.css?{$wgStyleVersion}" ); |
1211 | 1211 | |
| 1212 | + if ( class_exists( 'WikiEditorHooks' ) ) { |
| 1213 | + $temp = null; |
| 1214 | + WikiEditorHooks::addModules( $temp ); |
| 1215 | + } |
| 1216 | + |
1212 | 1217 | self::$stylesAndScriptsDone = true; |
1213 | 1218 | } |
1214 | 1219 | |
— | — | @@ -1888,10 +1893,6 @@ |
1889 | 1894 | |
1890 | 1895 | $html = ''; |
1891 | 1896 | |
1892 | | - if ( wfRunHooks( 'EditPageBeforeEditToolbar', array( $html ) ) ) { |
1893 | | - self::addJSandCSS(); |
1894 | | - } |
1895 | | - |
1896 | 1897 | $html .= Xml::openElement( 'div', array( 'class' => 'lqt-thread-wrapper' ) ); |
1897 | 1898 | |
1898 | 1899 | $html .= Xml::element( 'a', array( 'name' => $this->anchorName( $thread ) ), ' ' ); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -5,6 +5,7 @@ |
6 | 6 | function show() { |
7 | 7 | global $wgUser; |
8 | 8 | |
| 9 | + self::addJSandCSS(); |
9 | 10 | wfLoadExtensionMessages( 'LiquidThreads' ); |
10 | 11 | |
11 | 12 | $sk = $wgUser->getSkin(); |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -232,6 +232,7 @@ |
233 | 233 | $this->output->addFeedLink( $format, $url ); |
234 | 234 | } |
235 | 235 | |
| 236 | + self::addJSandCSS(); |
236 | 237 | $this->output->setSubtitle( $this->getSubtitle() ); |
237 | 238 | |
238 | 239 | if ( $this->methodApplies( 'summarize' ) ) |
Index: trunk/extensions/LiquidThreads/pages/NewUserMessagesView.php |
— | — | @@ -83,6 +83,8 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | function showOnce() { |
| 87 | + self::addJSandCSS(); |
| 88 | + |
87 | 89 | NewMessages::recacheMessageCount( $this->user->getId() ); |
88 | 90 | |
89 | 91 | static $scriptDone = false; |
Index: trunk/extensions/LiquidThreads/pages/SpecialHotTopics.php |
— | — | @@ -14,6 +14,8 @@ |
15 | 15 | $wgOut->setPageTitle( wfMsg( 'lqt-hot-topics' ) ); |
16 | 16 | $view = LqtView::getView(); |
17 | 17 | |
| 18 | + LqtView::addJsAndCss(); |
| 19 | + |
18 | 20 | // Get hot topics |
19 | 21 | $topics = LqtHotTopicsController::getHotThreads(); |
20 | 22 | |
Index: trunk/extensions/LiquidThreads/pages/ThreadHistoryListingView.php |
— | — | @@ -7,6 +7,7 @@ |
8 | 8 | $this->showMissingThreadPage(); |
9 | 9 | return false; |
10 | 10 | } |
| 11 | + self::addJSandCSS(); |
11 | 12 | wfLoadExtensionMessages( 'LiquidThreads' ); |
12 | 13 | |
13 | 14 | $this->thread->updateHistory(); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -223,6 +223,7 @@ |
224 | 224 | wfLoadExtensionMessages( 'LiquidThreads' ); |
225 | 225 | |
226 | 226 | $this->output->setPageTitle( $this->title->getPrefixedText() ); |
| 227 | + self::addJSandCSS(); |
227 | 228 | |
228 | 229 | // Expose feed links. |
229 | 230 | global $wgFeedClasses; |