Merge "Use OOUI form for edit watchlist"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 3 May 2018 15:22:42 +0000 (15:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 3 May 2018 15:22:42 +0000 (15:22 +0000)
includes/specials/forms/EditWatchlistNormalHTMLForm.php

index 723093a..b60882a 100644 (file)
@@ -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-' );
-       }
 }