}
public function getQueryInfo() {
+ $imgQuery = LocalFile::getQueryInfo();
return [
- 'tables' => [ 'image' ],
+ 'tables' => $imgQuery['tables'],
'fields' => [
'title' => 'img_name',
'value' => 'img_sha1',
- 'img_user_text',
+ 'img_user_text' => $imgQuery['fields']['img_user_text'],
'img_timestamp'
],
- 'conds' => [ 'img_sha1' => $this->hash ]
+ 'conds' => [ 'img_sha1' => $this->hash ],
+ 'join_conds' => $imgQuery['joins'],
];
}
$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).