Index: trunk/extensions/LiquidThreads/classes/View.php |
— | — | @@ -1208,11 +1208,6 @@ |
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 | | - |
1217 | 1212 | self::$stylesAndScriptsDone = true; |
1218 | 1213 | } |
1219 | 1214 | |
— | — | @@ -1892,6 +1887,9 @@ |
1893 | 1888 | $replyTo = $this->methodAppliesToThread( 'reply', $thread ); |
1894 | 1889 | |
1895 | 1890 | $html = ''; |
| 1891 | + if ( wfRunHooks( 'EditPageBeforeEditToolbar', array( &$html ) ) ) { |
| 1892 | + self::addJSandCSS(); |
| 1893 | + } |
1896 | 1894 | |
1897 | 1895 | $class = $this->threadDivClass( $thread ); |
1898 | 1896 | if ( $levelNum == 1 ) { |
— | — | @@ -1905,7 +1903,7 @@ |
1906 | 1904 | } else { |
1907 | 1905 | $class .= ' lqt-thread-no-subthreads'; |
1908 | 1906 | } |
1909 | | - |
| 1907 | + |
1910 | 1908 | $class .= ' lqt-thread-wrapper'; |
1911 | 1909 | |
1912 | 1910 | $html .= Xml::openElement( |
— | — | @@ -1915,7 +1913,7 @@ |
1916 | 1914 | 'id' => 'lqt_thread_id_' . $thread->id() |
1917 | 1915 | ) |
1918 | 1916 | ); |
1919 | | - |
| 1917 | + |
1920 | 1918 | $html .= Xml::element( 'a', array( 'name' => $this->anchorName( $thread ) ), ' ' ); |
1921 | 1919 | $html .= $this->showThreadHeading( $thread ); |
1922 | 1920 | |
Index: trunk/extensions/LiquidThreads/pages/TalkpageHistoryView.php |
— | — | @@ -5,7 +5,6 @@ |
6 | 6 | function show() { |
7 | 7 | global $wgUser; |
8 | 8 | |
9 | | - self::addJSandCSS(); |
10 | 9 | wfLoadExtensionMessages( 'LiquidThreads' ); |
11 | 10 | |
12 | 11 | $sk = $wgUser->getSkin(); |
Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -232,7 +232,6 @@ |
233 | 233 | $this->output->addFeedLink( $format, $url ); |
234 | 234 | } |
235 | 235 | |
236 | | - self::addJSandCSS(); |
237 | 236 | $this->output->setSubtitle( $this->getSubtitle() ); |
238 | 237 | |
239 | 238 | if ( $this->methodApplies( 'summarize' ) ) |
Index: trunk/extensions/LiquidThreads/pages/NewUserMessagesView.php |
— | — | @@ -83,8 +83,6 @@ |
84 | 84 | } |
85 | 85 | |
86 | 86 | function showOnce() { |
87 | | - self::addJSandCSS(); |
88 | | - |
89 | 87 | NewMessages::recacheMessageCount( $this->user->getId() ); |
90 | 88 | |
91 | 89 | static $scriptDone = false; |
Index: trunk/extensions/LiquidThreads/pages/SpecialHotTopics.php |
— | — | @@ -14,8 +14,6 @@ |
15 | 15 | $wgOut->setPageTitle( wfMsg( 'lqt-hot-topics' ) ); |
16 | 16 | $view = LqtView::getView(); |
17 | 17 | |
18 | | - LqtView::addJsAndCss(); |
19 | | - |
20 | 18 | // Get hot topics |
21 | 19 | $topics = LqtHotTopicsController::getHotThreads(); |
22 | 20 | |
Index: trunk/extensions/LiquidThreads/pages/ThreadHistoryListingView.php |
— | — | @@ -7,7 +7,6 @@ |
8 | 8 | $this->showMissingThreadPage(); |
9 | 9 | return false; |
10 | 10 | } |
11 | | - self::addJSandCSS(); |
12 | 11 | wfLoadExtensionMessages( 'LiquidThreads' ); |
13 | 12 | |
14 | 13 | $this->thread->updateHistory(); |
Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php |
— | — | @@ -223,7 +223,6 @@ |
224 | 224 | wfLoadExtensionMessages( 'LiquidThreads' ); |
225 | 225 | |
226 | 226 | $this->output->setPageTitle( $this->title->getPrefixedText() ); |
227 | | - self::addJSandCSS(); |
228 | 227 | |
229 | 228 | // Expose feed links. |
230 | 229 | global $wgFeedClasses; |