From ea8f68bea6957ae459ff1ba6849b25354b3f0093 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 5 Aug 2020 09:49:18 +0200 Subject: Hand in the route and the parameters of the request Signed-off-by: Joas Schilling Signed-off-by: npmbuildbot[bot] --- apps/files/lib/Search/FilesSearchProvider.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/files') diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php index ce6f705f72c..e221dab0ab1 100644 --- a/apps/files/lib/Search/FilesSearchProvider.php +++ b/apps/files/lib/Search/FilesSearchProvider.php @@ -77,7 +77,11 @@ class FilesSearchProvider implements IProvider { /** * @inheritDoc */ - public function getOrder(string $from): int { + public function getOrder(string $route, array $routeParameters): int { + if ($route === 'files.View.index') { + // Before comments + return -5; + } return 5; } -- cgit v1.2.3