Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -29,6 +29,11 @@ |
30 | 30 | // We are given a talkpage article and title. Find the associated |
31 | 31 | // non-talk article and pass that to the view. |
32 | 32 | $article = new Article($title->getSubjectPage()); |
| 33 | + |
| 34 | + if( $title->getSubjectPage()->getNamespace() == NS_LQT_THREAD ) { |
| 35 | + // Threads don't have talk pages; redirect to the thread page. |
| 36 | + $output->redirect($title->getSubjectPage()->getFullUrl()); |
| 37 | + } |
33 | 38 | |
34 | 39 | /* Certain actions apply to the "header", which is stored in the actual talkpage |
35 | 40 | in the database. Drop everything and behave like a normal page if those |
— | — | @@ -1084,6 +1089,7 @@ |
1085 | 1090 | function customizeTabs( $skintemplate, $content_actions ) { |
1086 | 1091 | // The arguments are passed in by reference. |
1087 | 1092 | unset($content_actions['edit']); |
| 1093 | + unset($content_actions['talk']); |
1088 | 1094 | /* unset($content_actions['history']); |
1089 | 1095 | unset($content_actions['watch']); |
1090 | 1096 | unset($content_actions['move']);*/ |