'size' => 50,
'value' => $this->filename,
'cssclass' => 'mw-ui-input-inline'
'size' => 50,
'value' => $this->filename,
'cssclass' => 'mw-ui-input-inline'
$htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() );
$htmlForm->addHiddenFields( $hiddenFields );
$htmlForm->setAction( wfScript() );
$htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() );
$htmlForm->addHiddenFields( $hiddenFields );
$htmlForm->setAction( wfScript() );
} elseif ( $this->filename !== '' ) {
$out->wrapWikiMsg(
"<p class='mw-fileduplicatesearch-noresults'>\n$1\n</p>",
} elseif ( $this->filename !== '' ) {
$out->wrapWikiMsg(
"<p class='mw-fileduplicatesearch-noresults'>\n$1\n</p>",
if ( $thumb ) {
$out->addModuleStyles( 'mediawiki.special' );
$out->addHTML( '<div id="mw-fileduplicatesearch-icon">' .
if ( $thumb ) {
$out->addModuleStyles( 'mediawiki.special' );
$out->addHTML( '<div id="mw-fileduplicatesearch-icon">' .
$this->msg( 'fileduplicatesearch-info' )->numParams(
$img->getWidth(), $img->getHeight() )->params(
$this->getLanguage()->formatSize( $img->getSize() ),
$this->msg( 'fileduplicatesearch-info' )->numParams(
$img->getWidth(), $img->getHeight() )->params(
$this->getLanguage()->formatSize( $img->getSize() ),
- array( 'fileduplicatesearch-result-n', wfEscapeWikiText( $this->filename ),
- $this->getLanguage()->formatNum( $numRows - 1 ) )
+ [ 'fileduplicatesearch-result-n', wfEscapeWikiText( $this->filename ),
+ $this->getLanguage()->formatNum( $numRows - 1 ) ]
$title = Title::newFromText( $search, NS_FILE );
if ( !$title || $title->getNamespace() !== NS_FILE ) {
// No prefix suggestion outside of file namespace
$title = Title::newFromText( $search, NS_FILE );
if ( !$title || $title->getNamespace() !== NS_FILE ) {
// No prefix suggestion outside of file namespace
- $prefixSearcher = new TitlePrefixSearch;
- $result = $prefixSearcher->search( $search, $limit, array( NS_FILE ), $offset );
+ $search->setNamespaces( [ NS_FILE ] );
+ $result = $search->defaultPrefixSearch( $search );