r25106 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25105‎ | r25106 | r25107 >
Date:07:17, 24 August 2007
Author:david
Status:old
Tags:
Comment:
delete tab fixed
Modified paths:
  • /branches/liquidthreads/extensions/LqtExtension.php (modified) (history)

Diff [purge]

Index: branches/liquidthreads/extensions/LqtExtension.php
@@ -1118,12 +1118,18 @@
11191119 /* unset($content_actions['history']);
11201120 unset($content_actions['watch']);
11211121 unset($content_actions['move']);*/
1122 - if( in_array( 'move', $content_actions ) ) {
 1122+ if( array_key_exists( 'move', $content_actions ) ) {
11231123 $content_actions['move']['href'] =
11241124 SpecialPage::getPage('Movethread')->getTitle()->getFullURL() . '/' .
11251125 $this->thread->title()->getPrefixedURL();
11261126 }
 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+ }
11271132
 1133+
11281134 return true;
11291135 }
11301136

Status & tagging log