summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-07-12 13:10:29 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-07-12 13:10:29 -0400
commit6b303ee64b5c1b1e338c9bbf1b895d33b140985d (patch)
tree83878e2eeecedefe8eebd846e70ea7bc3f317d15 /lib
parente202c299267549a88faf286e85899225616178a2 (diff)
downloadnextcloud-server-6b303ee64b5c1b1e338c9bbf1b895d33b140985d.tar.gz
nextcloud-server-6b303ee64b5c1b1e338c9bbf1b895d33b140985d.zip
Fix bug in opendir() and remove getStorageMountPoint(), now using datadir argument instead
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
-rw-r--r--lib/filesystem.php9
2 files changed, 1 insertions, 10 deletions
diff --git a/lib/base.php b/lib/base.php
index 4250274c7c3..d369b392a4f 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -166,7 +166,7 @@ class OC_UTIL {
OC_FILESYSTEM::mount($rootStorage,'/');
// TODO add this storage provider in a proper way
- $sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>$CONFIG_DATADIRECTORY));
+ $sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>'/MTGap/files/Share/'));
OC_FILESYSTEM::mount($sharedStorage,'MTGap/files/Share/');
$CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root";
diff --git a/lib/filesystem.php b/lib/filesystem.php
index c7e2070fa0a..1f96e139ab3 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -216,15 +216,6 @@ class OC_FILESYSTEM{
}
/**
- * get the mountpoint of the storage object
- * @param OC_FILESTORAGE storage
- * @return string
- */
- static public function getStorageMountPoint($storage){
- return array_search($storage, self::$storages);
- }
-
- /**
* return the path to a local version of the file
* we need this because we can't know if a file is stored local or not from outside the filestorage and for some purposes a local file is needed
* @param string path