Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -1118,12 +1118,18 @@ |
1119 | 1119 | /* unset($content_actions['history']); |
1120 | 1120 | unset($content_actions['watch']); |
1121 | 1121 | unset($content_actions['move']);*/ |
1122 | | - if( in_array( 'move', $content_actions ) ) { |
| 1122 | + if( array_key_exists( 'move', $content_actions ) ) { |
1123 | 1123 | $content_actions['move']['href'] = |
1124 | 1124 | SpecialPage::getPage('Movethread')->getTitle()->getFullURL() . '/' . |
1125 | 1125 | $this->thread->title()->getPrefixedURL(); |
1126 | 1126 | } |
| 1127 | + if( array_key_exists( 'delete', $content_actions ) ) { |
| 1128 | + $content_actions['delete']['href'] = |
| 1129 | + SpecialPage::getPage('Deletethread')->getTitle()->getFullURL() . '/' . |
| 1130 | + $this->thread->title()->getPrefixedURL(); |
| 1131 | + } |
1127 | 1132 | |
| 1133 | + |
1128 | 1134 | return true; |
1129 | 1135 | } |
1130 | 1136 | |