Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php |
— | — | @@ -54,7 +54,16 @@ |
55 | 55 | } |
56 | 56 | |
57 | 57 | static function customizeThreadNavigation( $skin, &$links, $view ) { |
| 58 | + $tempTitle = Title::makeTitle( NS_LQT_THREAD, 'A' ); |
| 59 | + $talkKey = $tempTitle->getNamespaceKey( '' ) . '_talk'; |
| 60 | + |
58 | 61 | if ( !$view->thread ) { |
| 62 | + unset( $links['views']['edit'] ); |
| 63 | + unset( $links['views']['history'] ); |
| 64 | + |
| 65 | + $links['actions'] = array(); |
| 66 | + |
| 67 | + unset( $links['namespaces'][$talkKey] ); |
59 | 68 | return true; |
60 | 69 | } |
61 | 70 | |
— | — | @@ -63,7 +72,6 @@ |
64 | 73 | |
65 | 74 | $nstabs =& $links['namespaces']; |
66 | 75 | |
67 | | - $talkKey = $view->thread->title()->getNamespaceKey( '' ) . '_talk'; |
68 | 76 | unset( $nstabs[$talkKey] ); |
69 | 77 | $nstabs = $new_nstabs + $nstabs; |
70 | 78 | |