Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -59,17 +59,19 @@ |
60 | 60 | static function tryPage( $output, $article, $title, $user, $request ) { |
61 | 61 | if ( $title->isTalkPage() ) { |
62 | 62 | self::talkpageMain ($output, $article, $title, $user, $request); |
63 | | - return true; |
| 63 | + return false; |
64 | 64 | } else if ( $title->getNamespace() == NS_LQT_THREAD ) { |
65 | 65 | self::threadPermalinkMain($output, $article, $title, $user, $request); |
66 | | - return true; |
| 66 | + return false; |
67 | 67 | } |
68 | | - return false; |
| 68 | + return true; |
69 | 69 | } |
70 | 70 | } |
71 | 71 | |
| 72 | + |
72 | 73 | $wgHooks['MediaWikiPerformAction'][] = array('LqtDispatch::tryPage'); |
73 | 74 | |
| 75 | + |
74 | 76 | class LqtView { |
75 | 77 | protected $article; |
76 | 78 | protected $output; |
— | — | @@ -641,7 +643,7 @@ |
642 | 644 | |
643 | 645 | $this->showArchiveWidget(); |
644 | 646 | |
645 | | - var_dump(HistoricalThread::withIdAtRevision(3,11)); |
| 647 | +// var_dump(HistoricalThread::withIdAtRevision(3,11)); |
646 | 648 | |
647 | 649 | if( $this->methodApplies('talkpage_new_thread') ) { |
648 | 650 | $this->showNewThreadForm(); |