From: Alexandre Emsenhuber Date: Wed, 7 Sep 2011 08:29:18 +0000 (+0000) Subject: Pass the context to the HTMLForm object X-Git-Tag: 1.31.0-rc.0~27846 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=20b6cf33afbef100fc84ba28b43651ee94e5f4bf;p=lhc%2Fweb%2Fwiklou.git Pass the context to the HTMLForm object --- 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() );