diff options
Diffstat (limited to 'includes/specials/SpecialFileDuplicateSearch.php')
-rw-r--r-- | includes/specials/SpecialFileDuplicateSearch.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 49a218c8..4fde0a60 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -64,7 +64,7 @@ class FileDuplicateSearchPage extends QueryPage { * Output the HTML search form, and constructs the FileDuplicateSearch object. */ function wfSpecialFileDuplicateSearch( $par = null ) { - global $wgRequest, $wgTitle, $wgOut, $wgLang, $wgContLang; + global $wgRequest, $wgOut, $wgLang, $wgContLang, $wgScript; $hash = ''; $filename = isset( $par ) ? $par : $wgRequest->getText( 'filename' ); @@ -85,7 +85,8 @@ function wfSpecialFileDuplicateSearch( $par = null ) { # Create the input form $wgOut->addHTML( - Xml::openElement( 'form', array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgTitle->getLocalUrl() ) ) . + Xml::openElement( 'form', array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgScript ) ) . + Xml::hidden( 'title', SpecialPage::getTitleFor( 'FileDuplicateSearch' )->getPrefixedDbKey() ) . Xml::openElement( 'fieldset' ) . Xml::element( 'legend', null, wfMsg( 'fileduplicatesearch-legend' ) ) . Xml::inputLabel( wfMsg( 'fileduplicatesearch-filename' ), 'filename', 'filename', 50, $filename ) . ' ' . |