* Special:Export doesn't use raw SQL queries anymore
* (bug 14771) Thumbnail links to individual DjVu pages have two no longer have
two "page" parameters
+* (bug 17972) Special:FileDuplicateSearch form now works correctly on wikis that
+ don't use PathInfo or short urls
== API changes in 1.15 ==
* 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' );
# 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 ) . ' ' .