X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpreferences%2FPreferencesFactory.php;h=6602a0ad02f25c6c62ed434f3c7cdfcf5465df3b;hb=27a6845c2a675990b04dfead674c0d46d140aa17;hp=478edce85734878c4c29ad83634139c6dce43cb2;hpb=21fb9bb32b82f13a436238a7dca9bac1464baf80;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/preferences/PreferencesFactory.php b/includes/preferences/PreferencesFactory.php index 478edce857..6602a0ad02 100644 --- a/includes/preferences/PreferencesFactory.php +++ b/includes/preferences/PreferencesFactory.php @@ -22,13 +22,14 @@ namespace MediaWiki\Preferences; use HTMLForm; use IContextSource; +use PreferencesFormOOUI; use User; /** * A PreferencesFactory is a MediaWiki service that provides the definitions of preferences for a * given user. These definitions are in the form of an HTMLForm descriptor. * - * PreferencesFormLegacy (a subclass of HTMLForm) is used to generate the Preferences form, and + * PreferencesFormOOUI (a subclass of HTMLForm) is used to generate the Preferences form, and * handles generic submission, CSRF protection, layout and other logic in a reusable manner. * * In order to generate the form, the HTMLForm object needs an array structure detailing the @@ -62,7 +63,7 @@ interface PreferencesFactory { public function getForm( User $user, IContextSource $contextSource, - $formClass = \PreferencesFormLegacy::class, + $formClass = PreferencesFormOOUI::class, array $remove = [] );