Use OOUI form for edit watchlist
Change-Id: I2e2aa099e7941e1685dcaca37842b12a3469d5f3
This commit is contained in:
parent
3276f0eedd
commit
4e968b5c30
1 changed files with 2 additions and 6 deletions
|
|
@ -19,9 +19,9 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* Extend HTMLForm purely so we can have a more sane way of getting the section headers
|
||||
* Extend OOUIHTMLForm purely so we can have a more sane way of getting the section headers
|
||||
*/
|
||||
class EditWatchlistNormalHTMLForm extends HTMLForm {
|
||||
class EditWatchlistNormalHTMLForm extends OOUIHTMLForm {
|
||||
public function getLegend( $namespace ) {
|
||||
$namespace = substr( $namespace, 2 );
|
||||
|
||||
|
|
@ -29,8 +29,4 @@ class EditWatchlistNormalHTMLForm extends HTMLForm {
|
|||
? $this->msg( 'blanknamespace' )->escaped()
|
||||
: htmlspecialchars( $this->getContext()->getLanguage()->getFormattedNsText( $namespace ) );
|
||||
}
|
||||
|
||||
public function getBody() {
|
||||
return $this->displaySection( $this->mFieldTree, '', 'editwatchlist-' );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue