mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 03:35:58 +00:00
Merge "Use Html::hidden instead of Xml::element"
This commit is contained in:
commit
05f15dc79f
|
@ -212,40 +212,28 @@ class WikiEditorHooks {
|
|||
WikimediaEventsHooks::shouldSchemaEditAttemptStepOversample( $outputPage->getContext() );
|
||||
|
||||
$outputPage->addHTML(
|
||||
Xml::element(
|
||||
'input',
|
||||
[
|
||||
'type' => 'hidden',
|
||||
'name' => 'editingStatsId',
|
||||
'id' => 'editingStatsId',
|
||||
'value' => $editingStatsId
|
||||
]
|
||||
Html::hidden(
|
||||
'editingStatsId',
|
||||
$editingStatsId,
|
||||
[ 'id' => 'editingStatsId' ]
|
||||
)
|
||||
);
|
||||
|
||||
if ( $shouldOversample ) {
|
||||
$outputPage->addHTML(
|
||||
Xml::element(
|
||||
'input',
|
||||
[
|
||||
'type' => 'hidden',
|
||||
'name' => 'editingStatsOversample',
|
||||
'id' => 'editingStatsOversample',
|
||||
'value' => 1
|
||||
]
|
||||
Html::hidden(
|
||||
'editingStatsOversample',
|
||||
1,
|
||||
[ 'id' => 'editingStatsOversample' ]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$outputPage->addHTML(
|
||||
Xml::element(
|
||||
'input',
|
||||
[
|
||||
'type' => 'hidden',
|
||||
'name' => 'wikieditorJavascriptSupport',
|
||||
'id' => 'wikieditorJavascriptSupport',
|
||||
'value' => ''
|
||||
]
|
||||
Html::hidden(
|
||||
'wikieditorJavascriptSupport',
|
||||
'',
|
||||
[ 'id' => 'wikieditorJavascriptSupport' ]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue