diff options
author | Daniel <7558512+DerGenaue@users.noreply.github.com> | 2023-05-07 04:47:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 04:47:44 +0200 |
commit | 55d7add92fc941fe4d744cc729afb526d77235bd (patch) | |
tree | a7623d0a08d2183bec3cc28828b15e0c05822678 /apps/files_external | |
parent | b3ab8859fbb16041c172fbc408a47606e47f7feb (diff) | |
download | nextcloud-server-55d7add92fc941fe4d744cc729afb526d77235bd.tar.gz nextcloud-server-55d7add92fc941fe4d744cc729afb526d77235bd.zip |
Rename `numericStorageId` to `numericExternalStorageId` in PersonalMount.php
so that it doesn't override `numericStorageId` in the `MountPoint` baseclass
fixes https://github.com/nextcloud/server/issues/37473
fixes https://github.com/nextcloud/server/issues/37414
Signed-off-by: Daniel <7558512+DerGenaue@users.noreply.github.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/PersonalMount.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_external/lib/Lib/PersonalMount.php b/apps/files_external/lib/Lib/PersonalMount.php index b22266fce18..b0487494635 100644 --- a/apps/files_external/lib/Lib/PersonalMount.php +++ b/apps/files_external/lib/Lib/PersonalMount.php @@ -36,8 +36,8 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount { /** @var UserStoragesService */ protected $storagesService; - /** @var int */ - protected $numericStorageId; + /** @var int id of the external storage (mount) (not the numeric id of the resulting storage!) */ + protected $numericExternalStorageId; /** * @param UserStoragesService $storagesService @@ -51,7 +51,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount { public function __construct( UserStoragesService $storagesService, StorageConfig $storageConfig, - $storageId, + $externalStorageId, $storage, $mountpoint, $arguments = null, @@ -61,7 +61,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount { ) { parent::__construct($storageConfig, $storage, $mountpoint, $arguments, $loader, $mountOptions, $mountId); $this->storagesService = $storagesService; - $this->numericStorageId = $storageId; + $this->numericExternalStorageId = $externalStorageId; } /** @@ -71,7 +71,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount { * @return bool */ public function moveMount($target) { - $storage = $this->storagesService->getStorage($this->numericStorageId); + $storage = $this->storagesService->getStorage($this->numericExternalStorageId); // remove "/$user/files" prefix $targetParts = explode('/', trim($target, '/'), 3); $storage->setMountPoint($targetParts[2]); @@ -86,7 +86,7 @@ class PersonalMount extends ExternalMountPoint implements MoveableMount { * @return bool */ public function removeMount() { - $this->storagesService->removeStorage($this->numericStorageId); + $this->storagesService->removeStorage($this->numericExternalStorageId); return true; } } |