Drop DisplayFormat configuration

Force ooui display format for all contact
forms

Change-Id: Idb4225fb71d9d030192226bb6ba1111d39a9040d
This commit is contained in:
jdlrobson 2017-04-17 09:49:16 -07:00 committed by Jforrester
parent 72532a3ea6
commit 8642bab44f
3 changed files with 1 additions and 7 deletions

View File

@ -201,7 +201,7 @@ class SpecialContact extends UnlistedSpecialPage {
];
}
$form = HTMLForm::factory( $config['DisplayFormat'],
$form = HTMLForm::factory( 'ooui',
$formItems, $this->getContext(), "contactpage-{$this->formType}"
);
$form->setWrapperLegendMsg( 'contactpage-legend' );

4
README
View File

@ -80,10 +80,6 @@ It should be noted that type 'selectandother' is not currently supported.
),
),
DisplayFormat is used to configure the HTMLForm. See HTMLForm documentation
for possible values. Recommended value is "ooui" for consistency with other
forms and better mobile rendering.
RLModules can be used to add ResourceLoader modules (custom CSS and
JavaScript) to the page.

View File

@ -19,14 +19,12 @@
},
"config": {
"ContactConfig": {
"@doc": "Use DisplayFormat `ooui` for compatibility with most skins.",
"default": {
"RecipientUser": null,
"SenderEmail": null,
"SenderName": null,
"RequireDetails": false,
"IncludeIP": false,
"DisplayFormat": "ooui",
"RLModules": [],
"RLStyleModules": [],
"AdditionalFields": {