r63995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63994‎ | r63995 | r63996 >
Date:12:39, 21 March 2010
Author:werdna
Status:deferred
Tags:
Comment:
LiquidThreads: Only offer to edit the subject if we are editing a topmost thread
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -591,9 +591,12 @@
592592 $signatureEditor;
593593 $e->previewTextAfterContent .=
594594 Xml::tags( 'p', null, $signatureHTML );
595 -
596 - $e->editFormTextBeforeContent .= $this->getSubjectEditor( $thread->subject(), $subject );
597595
 596+ if ( $thread->isTopmostThread() ) {
 597+ $e->editFormTextBeforeContent .=
 598+ $this->getSubjectEditor( $thread->subject(), $subject );
 599+ }
 600+
598601 $e->edit();
599602
600603 if ( $e->didSave ) {

Status & tagging log