From 9505767893a8aaa186c6cccf295af901680a67e2 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 27 May 2009 16:11:23 +0000 Subject: [PATCH] Reimplement Special:MoveThread with the new HTMLForm interface, fixing several bugs in the process: * Bug 18949 LiquidThreads allows threads to be moved to pages without LiquidThreads enabled. * You could move a thread to the page it was already on, which would leave strange placeholders that don't make sense. * Allowing wikitext in some new places where it makes sense. --- includes/HTMLForm.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index c06bd9e6ed..04b36daae4 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -146,6 +146,10 @@ class HTMLForm { $this->mValidationErrorMessage = $msg; } + function setIntro( $msg ) { + $this->mIntro = $msg; + } + function displayForm( $submitResult ) { global $wgOut; @@ -153,6 +157,10 @@ class HTMLForm { $this->displayErrors( $submitResult ); } + if ( isset($this->mIntro) ) { + $wgOut->addHTML( $this->mIntro ); + } + $html = $this->getBody(); // Hidden fields -- 2.20.1