From 0c2ce30777e78050710b63ace6e0c856c6e5030c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 22 May 2011 23:20:59 +0000 Subject: [PATCH] * (bug 29101) Special:FileDuplicateSearch shows silly message Patch by William Demchick --- RELEASE-NOTES-1.19 | 1 + includes/specials/SpecialFileDuplicateSearch.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.19 b/RELEASE-NOTES-1.19 index b614d0abfe..0866f34408 100644 --- a/RELEASE-NOTES-1.19 +++ b/RELEASE-NOTES-1.19 @@ -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. diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index af93070cb9..8ae2d54d35 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -118,7 +118,7 @@ class FileDuplicateSearchPage extends QueryPage { if( $this->file ) { $this->hash = $this->file->getSha1(); - } else { + } elseif( $this->filename !== '' ) { $wgOut->wrapWikiMsg( "

\n$1\n

", array( 'fileduplicatesearch-noresults', wfEscapeWikiText( $this->filename ) ) -- 2.20.1