diff options
author | Robin Appelman <robin@icewind.nl> | 2016-08-09 15:52:13 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-08-09 15:52:13 +0200 |
commit | a999420c7561791a30ac05ac389876f45aa6c11b (patch) | |
tree | 61a75d06f4cef5560732816dc518222e91a49532 /lib/private/Files/Config | |
parent | c04b0364acecc3b9c9bf5ee37d0e7db5b5b5234a (diff) | |
download | nextcloud-server-a999420c7561791a30ac05ac389876f45aa6c11b.tar.gz nextcloud-server-a999420c7561791a30ac05ac389876f45aa6c11b.zip |
get shared storage storage id without setting up the storage
Diffstat (limited to 'lib/private/Files/Config')
-rw-r--r-- | lib/private/Files/Config/LazyStorageMountInfo.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Files/Config/LazyStorageMountInfo.php b/lib/private/Files/Config/LazyStorageMountInfo.php index 2e9639f5f08..4df813d57d0 100644 --- a/lib/private/Files/Config/LazyStorageMountInfo.php +++ b/lib/private/Files/Config/LazyStorageMountInfo.php @@ -48,11 +48,7 @@ class LazyStorageMountInfo extends CachedMountInfo { */ public function getStorageId() { if (!$this->storageId) { - $storage = $this->mount->getStorage(); - if (!$storage) { - return -1; - } - $this->storageId = $storage->getStorageCache()->getNumericId(); + $this->storageId = $this->mount->getNumericStorageId(); } return parent::getStorageId(); } |