* (bug 29101) Special:FileDuplicateSearch shows silly message
authorSam Reed <reedy@users.mediawiki.org>
Sun, 22 May 2011 23:20:59 +0000 (23:20 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 22 May 2011 23:20:59 +0000 (23:20 +0000)
Patch by William Demchick

RELEASE-NOTES-1.19
includes/specials/SpecialFileDuplicateSearch.php

index b614d0a..0866f34 100644 (file)
@@ -76,6 +76,7 @@ production.
   changes to talk page in addition to watchlist edits.
 * (bug 29071) mediawiki.action.watch.ajax.js should pass uselang to API.
 * (bug 28272) Special:Allmessages should have only one "Go" button
+* (bug 29101) Special:FileDuplicateSearch shows silly message
 
 === API changes in 1.19 ===
 * BREAKING CHANGE: action=watch now requires POST and token.
index af93070..8ae2d54 100644 (file)
@@ -118,7 +118,7 @@ class FileDuplicateSearchPage extends QueryPage {
 
                if( $this->file ) {
                        $this->hash = $this->file->getSha1();
-               } else {
+               } elseif( $this->filename !== '' ) {
                        $wgOut->wrapWikiMsg(
                                "<p class='mw-fileduplicatesearch-noresults'>\n$1\n</p>",
                                array( 'fileduplicatesearch-noresults', wfEscapeWikiText( $this->filename ) )