Xml::inputLabel does not work with boolean parameters, therefore change
true to an empty string to avoid the '1' in html.
This is done for Special:BookSources (from the bug),
Special:ExpandTemplates, Special:Undelete and Special:Userrights
Bug: T68134
Change-Id: I53ff5701840750f17a2ea9a1ec56cd88c00f3cf5
'isbn',
20,
$this->isbn,
- array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' )
+ array( 'autofocus' => '', 'class' => 'mw-ui-input-inline' )
);
$form .= ' ' . Html::submitButton(
'contexttitle',
60,
$title,
- array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' )
+ array( 'autofocus' => '', 'class' => 'mw-ui-input-inline' )
) . '</p>';
$form .= '<p>' . Xml::label(
$this->msg( 'expand_templates_input' )->text(),
'prefix',
20,
$this->mSearchPrefix,
- array( 'id' => 'prefix', 'autofocus' => true )
+ array( 'id' => 'prefix', 'autofocus' => '' )
) . ' ' .
Xml::submitButton( $this->msg( 'undelete-search-submit' )->text() ) .
Xml::closeElement( 'fieldset' ) .
'wpComment',
50,
$this->mComment,
- array( 'id' => 'wpComment', 'autofocus' => true )
+ array( 'id' => 'wpComment', 'autofocus' => '' )
) .
"</td>
</tr>
30,
str_replace( '_', ' ', $this->mTarget ),
array(
- 'autofocus' => true,
+ 'autofocus' => '',
'class' => 'mw-autocomplete-user', // used by mediawiki.userSuggest
)
) . ' ' .