Bug 32673: Keep the username in the input field if not existing
[lhc/web/wiklou.git] / includes / specials / SpecialEditWatchlist.php
index 80c6ee8..cde2ca3 100644 (file)
@@ -416,7 +416,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                                $nsText = ($ns == NS_MAIN)
                                        ? wfMsgHtml( 'blanknamespace' )
                                        : htmlspecialchars( $wgContLang->getFormattedNsText( $ns ) );
-                               $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText,
+                               $this->toc .= Linker::tocLine( "editwatchlist-{$data['section']}", $nsText,
                                        $this->getLanguage()->formatNum( ++$tocLength ), 1 ) . Linker::tocLineEnd();
                        }
                        $this->toc = Linker::tocList( $this->toc );
@@ -559,6 +559,9 @@ class EditWatchlistNormalHTMLForm extends HTMLForm {
                        ? wfMsgHtml( 'blanknamespace' )
                        : htmlspecialchars( $this->getContext()->getLanguage()->getFormattedNsText( $namespace ) );
        }
+       public function getBody() {
+               return $this->displaySection( $this->mFieldTree, '', 'editwatchlist-' );
+       }
 }
 
 class EditWatchlistCheckboxSeriesField extends HTMLMultiSelectField {