r96410 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96409‎ | r96410 | r96411 >
Date:08:29, 7 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the context to the HTMLForm object
Modified paths:
  • /trunk/phase3/includes/specials/SpecialEditWatchlist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialEditWatchlist.php
@@ -411,7 +411,7 @@
412412 }
413413 }
414414
415 - $form = new EditWatchlistNormalHTMLForm( $fields );
 415+ $form = new EditWatchlistNormalHTMLForm( $fields, $this->getContext() );
416416 $form->setTitle( $this->getTitle() );
417417 $form->setSubmitText( wfMessage( 'watchlistedit-normal-submit' )->text() );
418418 $form->setWrapperLegend( wfMessage( 'watchlistedit-normal-legend' )->text() );
@@ -467,7 +467,7 @@
468468 'default' => $titles,
469469 ),
470470 );
471 - $form = new HTMLForm( $fields );
 471+ $form = new HTMLForm( $fields, $this->getContext() );
472472 $form->setTitle( $this->getTitle( 'raw' ) );
473473 $form->setSubmitText( wfMessage( 'watchlistedit-raw-submit' )->text() );
474474 $form->setWrapperLegend( wfMessage( 'watchlistedit-raw-legend' )->text() );

Status & tagging log