$this->setHeaders();
$this->outputHeader();
- $this->filename = $par !== null ? $par : $this->getRequest()->getText( 'filename' );
+ $this->filename = $par ?? $this->getRequest()->getText( 'filename' );
$this->file = null;
$this->hash = '';
$title = Title::newFromText( $this->filename, NS_FILE );
'label-message' => 'fileduplicatesearch-filename',
'id' => 'filename',
'size' => 50,
- 'value' => $this->filename,
+ 'default' => $this->filename,
],
];
$hiddenFields = [
$htmlForm->addHiddenFields( $hiddenFields );
$htmlForm->setAction( wfScript() );
$htmlForm->setMethod( 'get' );
- $htmlForm->setSubmitProgressive();
$htmlForm->setSubmitTextMsg( $this->msg( 'fileduplicatesearch-submit' ) );
// The form should be visible always, even if it was submitted (e.g. to perform another action).