Index: trunk/phase3/includes/specials/SpecialFileDuplicateSearch.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | * Output the HTML search form, and constructs the FileDuplicateSearch object. |
66 | 66 | */ |
67 | 67 | function wfSpecialFileDuplicateSearch( $par = null ) { |
68 | | - global $wgRequest, $wgTitle, $wgOut, $wgLang, $wgContLang; |
| 68 | + global $wgRequest, $wgOut, $wgLang, $wgContLang, $wgScript; |
69 | 69 | |
70 | 70 | $hash = ''; |
71 | 71 | $filename = isset( $par ) ? $par : $wgRequest->getText( 'filename' ); |
— | — | @@ -85,7 +85,8 @@ |
86 | 86 | |
87 | 87 | # Create the input form |
88 | 88 | $wgOut->addHTML( |
89 | | - Xml::openElement( 'form', array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgTitle->getLocalUrl() ) ) . |
| 89 | + Xml::openElement( 'form', array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgScript ) ) . |
| 90 | + Xml::hidden( 'title', SpecialPage::getTitleFor( 'FileDuplicateSearch' )->getPrefixedDbKey() ) . |
90 | 91 | Xml::openElement( 'fieldset' ) . |
91 | 92 | Xml::element( 'legend', null, wfMsg( 'fileduplicatesearch-legend' ) ) . |
92 | 93 | Xml::inputLabel( wfMsg( 'fileduplicatesearch-filename' ), 'filename', 'filename', 50, $filename ) . ' ' . |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -265,6 +265,8 @@ |
266 | 266 | * Special:Export doesn't use raw SQL queries anymore |
267 | 267 | * (bug 14771) Thumbnail links to individual DjVu pages have two no longer have |
268 | 268 | two "page" parameters |
| 269 | +* (bug 17972) Special:FileDuplicateSearch form now works correctly on wikis that |
| 270 | + don't use PathInfo or short urls |
269 | 271 | |
270 | 272 | |
271 | 273 | == API changes in 1.15 == |