Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -76,6 +76,7 @@ |
77 | 77 | changes to talk page in addition to watchlist edits. |
78 | 78 | * (bug 29071) mediawiki.action.watch.ajax.js should pass uselang to API. |
79 | 79 | * (bug 28272) Special:Allmessages should have only one "Go" button |
| 80 | +* (bug 29101) Special:FileDuplicateSearch shows silly message |
80 | 81 | |
81 | 82 | === API changes in 1.19 === |
82 | 83 | * BREAKING CHANGE: action=watch now requires POST and token. |
Index: trunk/phase3/includes/specials/SpecialFileDuplicateSearch.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | |
120 | 120 | if( $this->file ) { |
121 | 121 | $this->hash = $this->file->getSha1(); |
122 | | - } else { |
| 122 | + } elseif( $this->filename !== '' ) { |
123 | 123 | $wgOut->wrapWikiMsg( |
124 | 124 | "<p class='mw-fileduplicatesearch-noresults'>\n$1\n</p>", |
125 | 125 | array( 'fileduplicatesearch-noresults', wfEscapeWikiText( $this->filename ) ) |