diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-02-15 20:19:48 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-02-21 20:48:48 +0100 |
commit | 325858e9e239b726a207ac150404863df509935c (patch) | |
tree | 7f2480657001a03a2ac5d6ae3120886a9a025b5e /apps/files_sharing/sharedstorage.php | |
parent | c121a1a1e7d9ae554005b8438d8ad999cdacc601 (diff) | |
download | nextcloud-server-325858e9e239b726a207ac150404863df509935c.tar.gz nextcloud-server-325858e9e239b726a207ac150404863df509935c.zip |
add stream wrapper for in-memory files and dont use global variables for the fakedir stream wrapper
Diffstat (limited to 'apps/files_sharing/sharedstorage.php')
-rw-r--r-- | apps/files_sharing/sharedstorage.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php index cb641e68a84..07653fc11b5 100644 --- a/apps/files_sharing/sharedstorage.php +++ b/apps/files_sharing/sharedstorage.php @@ -79,7 +79,6 @@ class OC_Filestorage_Shared extends OC_Filestorage { if ($path == "" || $path == "/") { $path = $this->datadir.$path; $sharedItems = OC_Share::getItemsInFolder($path); - global $FAKEDIRS; $files = array(); foreach ($sharedItems as $item) { // If item is in the root of the shared storage provider and the item exists add it to the fakedirs @@ -87,7 +86,7 @@ class OC_Filestorage_Shared extends OC_Filestorage { $files[] = basename($item['target']); } } - $FAKEDIRS['shared'] = $files; + OC_FakeDirStream::$dirs['shared']=$files; return opendir('fakedir://shared'); } else { $source = $this->getSource($path); |