From 540538eba210858184ee6734a17e2216b166031b Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 30 May 2018 08:34:51 -0700 Subject: [PATCH] Special:Preferences/reset: Always use OOUI not the deprecated vform Though it's "nice" to show this as a big red button to users, sadly (a) vform is deprecated and shouldn't be used, and (b) the format's restriction on button width intereferes with the length of the sole control on this form, even without the prolix override expansion of for which wikis' communities are wont to do. Bug: T195977 Change-Id: Icc294bde1d3ed72837e7152003a2fbd522c9067d --- includes/specials/SpecialPreferences.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 41ee353a78..0490cbbfce 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -184,9 +184,7 @@ class SpecialPreferences extends SpecialPage { $context = new DerivativeContext( $this->getContext() ); $context->setTitle( $this->getPageTitle( 'reset' ) ); // Reset subpage - $htmlForm = HTMLForm::factory( - $this->oouiEnabled ? 'ooui' : 'vform', [], $context, 'prefs-restore' - ); + $htmlForm = HTMLForm::factory( 'ooui', [], $context, 'prefs-restore' ); $htmlForm->setSubmitTextMsg( 'restoreprefs' ); $htmlForm->setSubmitDestructive(); -- 2.20.1