From 8526bbb347a7b1ea18b225b4dda40029534636db Mon Sep 17 00:00:00 2001 From: Juan Pablo Villafáñez Date: Tue, 7 Jun 2016 16:53:16 +0200 Subject: Add support to know where the storage test comes from --- .../files_external/lib/Controller/UserGlobalStoragesController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/files_external/lib/Controller/UserGlobalStoragesController.php') diff --git a/apps/files_external/lib/Controller/UserGlobalStoragesController.php b/apps/files_external/lib/Controller/UserGlobalStoragesController.php index 1c94a1e9635..5050962a52e 100644 --- a/apps/files_external/lib/Controller/UserGlobalStoragesController.php +++ b/apps/files_external/lib/Controller/UserGlobalStoragesController.php @@ -111,11 +111,11 @@ class UserGlobalStoragesController extends StoragesController { * * @NoAdminRequired */ - public function show($id) { + public function show($id, $origin = null) { try { $storage = $this->service->getStorage($id); - $this->updateStorageStatus($storage); + $this->updateStorageStatus($storage, $origin); } catch (NotFoundException $e) { return new DataResponse( [ @@ -146,7 +146,8 @@ class UserGlobalStoragesController extends StoragesController { */ public function update( $id, - $backendOptions + $backendOptions, + $origin = null ) { try { $storage = $this->service->getStorage($id); -- cgit v1.2.3