Compare commits

...

1 Commits

Author SHA1 Message Date
Robin Appelman 6e7fd59be7
disable global file search
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-19 15:10:14 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ class FilesSearchProvider implements IProvider {
* @inheritDoc
*/
public function search(IUser $user, ISearchQuery $query): SearchResult {
return SearchResult::complete($this->l10n->t('Files'), []);
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
$fileQuery = new SearchQuery(
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'name', '%' . $query->getTerm() . '%'),