Pass the context to the HTMLForm object
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 7 Sep 2011 08:29:18 +0000 (08:29 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 7 Sep 2011 08:29:18 +0000 (08:29 +0000)
includes/specials/SpecialEditWatchlist.php

index 78255e9..bbe0fe3 100644 (file)
@@ -411,7 +411,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                        }
                }
 
-               $form = new EditWatchlistNormalHTMLForm( $fields );
+               $form = new EditWatchlistNormalHTMLForm( $fields, $this->getContext() );
                $form->setTitle( $this->getTitle() );
                $form->setSubmitText( wfMessage( 'watchlistedit-normal-submit' )->text() );
                $form->setWrapperLegend( wfMessage( 'watchlistedit-normal-legend' )->text() );
@@ -467,7 +467,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                                'default' => $titles,
                        ),
                );
-               $form = new HTMLForm( $fields );
+               $form = new HTMLForm( $fields, $this->getContext() );
                $form->setTitle( $this->getTitle( 'raw' ) );
                $form->setSubmitText( wfMessage( 'watchlistedit-raw-submit' )->text() );
                $form->setWrapperLegend( wfMessage( 'watchlistedit-raw-legend' )->text() );