Index: trunk/extensions/LiquidThreads/classes/Dispatch.php |
— | — | @@ -41,7 +41,14 @@ |
42 | 42 | $action = $request->getVal( 'action' ); |
43 | 43 | $header_actions = array( 'history', 'edit', 'submit', 'delete' ); |
44 | 44 | global $wgRequest; |
45 | | - if ( $request->getVal( 'lqt_method', null ) === null && |
| 45 | + if ($action == 'edit' && $request->getVal('section') == 'new') { |
| 46 | + // Hijack section=new for "new thread". |
| 47 | + $request->setVal( 'lqt_method', 'talkpage_new_thread' ); |
| 48 | + $request->setVal( 'section', '' ); |
| 49 | + |
| 50 | + $viewname = self::$views['TalkpageView']; |
| 51 | + |
| 52 | + } elseif ( $request->getVal( 'lqt_method', null ) === null && |
46 | 53 | ( in_array( $action, $header_actions ) || |
47 | 54 | $request->getVal( 'diff', null ) !== null ) ) { |
48 | 55 | // Pass through wrapper |