Index: trunk/extensions/LiquidThreads/LqtPages.php |
— | — | @@ -213,7 +213,8 @@ |
214 | 214 | $remember_sort_checked = ''; |
215 | 215 | } |
216 | 216 | |
217 | | - if( $this->methodApplies('talkpage_new_thread') ) { |
| 217 | + global $wgRequest; |
| 218 | + if( $this->methodApplies('talkpage_new_thread') || $wgRequest->getBool( 'redlink' ) ) { |
218 | 219 | $this->showNewThreadForm(); |
219 | 220 | } else { |
220 | 221 | |
Index: trunk/extensions/LiquidThreads/LqtBaseView.php |
— | — | @@ -81,7 +81,10 @@ |
82 | 82 | actions come up, to avoid hacking the various history, editing, etc. code. */ |
83 | 83 | $action = $request->getVal('action'); |
84 | 84 | $header_actions = array('history', 'edit', 'submit'); |
85 | | - if ($request->getVal('lqt_method', null) === null && |
| 85 | + global $wgRequest; |
| 86 | + if( $wgRequest->getBool( 'redlink' ) ) { |
| 87 | + $viewname = self::$views['TalkpageView']; |
| 88 | + } else if ($request->getVal('lqt_method', null) === null && |
86 | 89 | ( in_array( $action, $header_actions ) || |
87 | 90 | $request->getVal('diff', null) !== null ) ) { |
88 | 91 | $viewname = self::$views['TalkpageHeaderView']; |