aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller/UserStoragesController.php
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-06-07 16:53:16 +0200
committerJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-06-07 16:53:16 +0200
commit8526bbb347a7b1ea18b225b4dda40029534636db (patch)
tree7600c448bbde5b8501ed35f23fbc8b50ede29de3 /apps/files_external/lib/Controller/UserStoragesController.php
parentf28f6ad2df59b8faa9589bffbc9d2c53b03a2840 (diff)
downloadnextcloud-server-8526bbb347a7b1ea18b225b4dda40029534636db.tar.gz
nextcloud-server-8526bbb347a7b1ea18b225b4dda40029534636db.zip
Add support to know where the storage test comes from
Diffstat (limited to 'apps/files_external/lib/Controller/UserStoragesController.php')
-rw-r--r--apps/files_external/lib/Controller/UserStoragesController.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/files_external/lib/Controller/UserStoragesController.php b/apps/files_external/lib/Controller/UserStoragesController.php
index 936da7ec5e2..73f7178b142 100644
--- a/apps/files_external/lib/Controller/UserStoragesController.php
+++ b/apps/files_external/lib/Controller/UserStoragesController.php
@@ -101,8 +101,8 @@ class UserStoragesController extends StoragesController {
*
* {@inheritdoc}
*/
- public function show($id) {
- return parent::show($id);
+ public function show($id, $origin = null) {
+ return parent::show($id, $origin);
}
/**
@@ -170,7 +170,8 @@ class UserStoragesController extends StoragesController {
$backend,
$authMechanism,
$backendOptions,
- $mountOptions
+ $mountOptions,
+ $origin = null
) {
$storage = $this->createStorage(
$mountPoint,
@@ -200,7 +201,7 @@ class UserStoragesController extends StoragesController {
);
}
- $this->updateStorageStatus($storage);
+ $this->updateStorageStatus($storage, $origin);
return new DataResponse(
$storage,