http://www.mediawiki.org/wiki/Special:Code/MediaWiki/63995

Revision: 63995
Author:   werdna
Date:     2010-03-21 12:39:24 +0000 (Sun, 21 Mar 2010)

Log Message:
-----------
LiquidThreads: Only offer to edit the subject if we are editing a topmost thread

Modified Paths:
--------------
    trunk/extensions/LiquidThreads/classes/View.php

Modified: trunk/extensions/LiquidThreads/classes/View.php
===================================================================
--- trunk/extensions/LiquidThreads/classes/View.php     2010-03-21 07:36:53 UTC 
(rev 63994)
+++ trunk/extensions/LiquidThreads/classes/View.php     2010-03-21 12:39:24 UTC 
(rev 63995)
@@ -591,9 +591,12 @@
                        $signatureEditor;
                $e->previewTextAfterContent .=
                        Xml::tags( 'p', null, $signatureHTML );
-                       
-               $e->editFormTextBeforeContent .= $this->getSubjectEditor( 
$thread->subject(), $subject );
                
+               if ( $thread->isTopmostThread() ) {
+                       $e->editFormTextBeforeContent .=
+                               $this->getSubjectEditor( $thread->subject(), 
$subject );
+               }
+               
                $e->edit();
                
                if ( $e->didSave ) {



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to