aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-04 18:15:09 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-08-05 11:37:45 +0200
commitd98f7c1bd83fc03fd297ebeac6279ffe17316950 (patch)
tree4f1f261e1033f441a0deaa30f5aeb56cbbb51c43 /core/Controller
parent71b62c4203a25beefeab73f73668919c813e3a50 (diff)
downloadnextcloud-server-d98f7c1bd83fc03fd297ebeac6279ffe17316950.tar.gz
nextcloud-server-d98f7c1bd83fc03fd297ebeac6279ffe17316950.zip
Make apps handle the order logic
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/UnifiedSearchController.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php
index ecc5192ff31..4aaa1b9b067 100644
--- a/core/Controller/UnifiedSearchController.php
+++ b/core/Controller/UnifiedSearchController.php
@@ -54,10 +54,14 @@ class UnifiedSearchController extends Controller {
/**
* @NoAdminRequired
* @NoCSRFRequired
+ *
+ * @param string $from the url the user is currently at
+ *
+ * @return JSONResponse
*/
- public function getProviders(): JSONResponse {
+ public function getProviders(string $from): JSONResponse {
return new JSONResponse(
- $this->composer->getProviders()
+ $this->composer->getProviders($from)
);
}