summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/comments/lib/Search/CommentsSearchProvider.php2
-rw-r--r--apps/dav/lib/Search/ContactsSearchProvider.php2
-rw-r--r--apps/dav/lib/Search/EventsSearchProvider.php2
-rw-r--r--apps/dav/lib/Search/TasksSearchProvider.php2
-rw-r--r--apps/files/lib/Search/FilesSearchProvider.php2
-rw-r--r--apps/settings/lib/Search/SectionSearch.php6
6 files changed, 10 insertions, 6 deletions
diff --git a/apps/comments/lib/Search/CommentsSearchProvider.php b/apps/comments/lib/Search/CommentsSearchProvider.php
index 3d503cf5c51..bab10a58eeb 100644
--- a/apps/comments/lib/Search/CommentsSearchProvider.php
+++ b/apps/comments/lib/Search/CommentsSearchProvider.php
@@ -77,7 +77,7 @@ class CommentsSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
return 10;
}
diff --git a/apps/dav/lib/Search/ContactsSearchProvider.php b/apps/dav/lib/Search/ContactsSearchProvider.php
index d87f87d7591..82fa44a7a26 100644
--- a/apps/dav/lib/Search/ContactsSearchProvider.php
+++ b/apps/dav/lib/Search/ContactsSearchProvider.php
@@ -96,7 +96,7 @@ class ContactsSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
return 7;
}
diff --git a/apps/dav/lib/Search/EventsSearchProvider.php b/apps/dav/lib/Search/EventsSearchProvider.php
index 6d264ae482e..c9ce11a297d 100644
--- a/apps/dav/lib/Search/EventsSearchProvider.php
+++ b/apps/dav/lib/Search/EventsSearchProvider.php
@@ -82,7 +82,7 @@ class EventsSearchProvider extends ACalendarSearchProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
return 10;
}
diff --git a/apps/dav/lib/Search/TasksSearchProvider.php b/apps/dav/lib/Search/TasksSearchProvider.php
index 9a0a87eb5ab..6c07cfd00f3 100644
--- a/apps/dav/lib/Search/TasksSearchProvider.php
+++ b/apps/dav/lib/Search/TasksSearchProvider.php
@@ -74,7 +74,7 @@ class TasksSearchProvider extends ACalendarSearchProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
return 10;
}
diff --git a/apps/files/lib/Search/FilesSearchProvider.php b/apps/files/lib/Search/FilesSearchProvider.php
index d0a4bf56624..ce6f705f72c 100644
--- a/apps/files/lib/Search/FilesSearchProvider.php
+++ b/apps/files/lib/Search/FilesSearchProvider.php
@@ -77,7 +77,7 @@ class FilesSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
return 5;
}
diff --git a/apps/settings/lib/Search/SectionSearch.php b/apps/settings/lib/Search/SectionSearch.php
index 6e7b930046c..d949d93fb61 100644
--- a/apps/settings/lib/Search/SectionSearch.php
+++ b/apps/settings/lib/Search/SectionSearch.php
@@ -75,7 +75,11 @@ class SectionSearch implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(): int {
+ public function getOrder(string $from): int {
+ if (strpos($from, $this->urlGenerator->linkToRoute('settings.PersonalSettings.index') === 0)
+ || strpos($from, $this->urlGenerator->linkToRoute('settings.AdminSettings.index')) === 0) {
+ return -1;
+ }
return 20;
}