diff options
Diffstat (limited to 'includes/specials/SpecialPreferences.php')
-rw-r--r-- | includes/specials/SpecialPreferences.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index e63aeee6..edc26bc1 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -52,7 +52,6 @@ class SpecialPreferences extends SpecialPage { return; } - $wgOut->addModules( 'mediawiki.legacy.prefs' ); $wgOut->addModules( 'mediawiki.special.preferences' ); if ( $wgRequest->getCheck( 'success' ) ) { @@ -61,7 +60,7 @@ class SpecialPreferences extends SpecialPage { 'savedprefs' ); } - + if ( $wgRequest->getCheck( 'eauth' ) ) { $wgOut->wrapWikiMsg( "<div class='error' style='clear: both;'>\n$1\n</div>", 'eauthentsent', $wgUser->getName() ); @@ -78,7 +77,7 @@ class SpecialPreferences extends SpecialPage { $wgOut->addWikiMsg( 'prefs-reset-intro' ); - $htmlForm = new HTMLForm( array(), 'prefs-restore' ); + $htmlForm = new HTMLForm( array(), $this->getContext(), 'prefs-restore' ); $htmlForm->setSubmitText( wfMsg( 'restoreprefs' ) ); $htmlForm->setTitle( $this->getTitle( 'reset' ) ); |