X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPreferences.php;h=0490cbbfce21d8137750f106e11f5281c918d5f7;hb=138298b397b308ad6e4bfc7088884d90e8ac1e37;hp=7a4cde99fbb0454829935e47126ad7da7dd6b07a;hpb=e946bd1432e935dbf77b12dbcf7379ae32d4661c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 7a4cde99fb..0490cbbfce 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -40,6 +40,8 @@ class SpecialPreferences extends SpecialPage { /** * Check if OOUI mode is enabled, by config or query string + * + * @since 1.32 * @param IContextSource $context The context. * @return bool */ @@ -161,7 +163,7 @@ class SpecialPreferences extends SpecialPage { * Get the preferences form to use. * @param User $user The user. * @param IContextSource $context The context. - * @return PreferencesForm|HTMLForm + * @return PreferencesFormLegacy|HTMLForm */ protected function getFormObject( $user, IContextSource $context ) { $preferencesFactory = MediaWikiServices::getInstance()->getPreferencesFactory(); @@ -182,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();