From: umherirrender Date: Mon, 28 Dec 2015 22:10:12 +0000 (+0100) Subject: Fix SpecialFileDuplicateSearch::prefixSearchSubpages X-Git-Tag: 1.31.0-rc.0~8526^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=83a15d8d6c42e62c105f45a7ceddebb1760d4fa4;p=lhc%2Fweb%2Fwiklou.git Fix SpecialFileDuplicateSearch::prefixSearchSubpages search suggestion without namespaces was not showing any list Follows I71f77c3001a12d75b901807c20115cead9c64e93 Change-Id: Ib361e3de0cfd595e9f8949b9225ed37c29b8a3ef --- diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index bb57ee055a..323903e227 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -241,7 +241,7 @@ class FileDuplicateSearchPage extends QueryPage { * @return string[] Matching subpages */ public function prefixSearchSubpages( $search, $limit, $offset ) { - $title = Title::newFromText( $search ); + $title = Title::newFromText( $search, NS_FILE ); if ( !$title || $title->getNamespace() !== NS_FILE ) { // No prefix suggestion outside of file namespace return array();