From 20b6cf33afbef100fc84ba28b43651ee94e5f4bf Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 7 Sep 2011 08:29:18 +0000 Subject: [PATCH] Pass the context to the HTMLForm object --- includes/specials/SpecialEditWatchlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 78255e9f2c..bbe0fe354f 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -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() ); -- 2.20.1