diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-19 22:50:28 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-19 22:54:14 +0200 |
commit | f54ef5a464e3530da36f2ebe7f88052cac0c6ad0 (patch) | |
tree | b6703ab82a2d9ea338d82d6faa56bb18fafa61e3 /lib/files.php | |
parent | d8b32c2f0e962531fa36707faa6deed6ebb2e378 (diff) | |
download | nextcloud-server-f54ef5a464e3530da36f2ebe7f88052cac0c6ad0.tar.gz nextcloud-server-f54ef5a464e3530da36f2ebe7f88052cac0c6ad0.zip |
Remove OC::$CONFIG_DATADIRECTORY, not used
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/files.php b/lib/files.php index 3ecf08739b0..469c3a15b8e 100644 --- a/lib/files.php +++ b/lib/files.php @@ -30,12 +30,9 @@ class OC_Files { /** * get the content of a directory - * @param dir $directory + * @param dir $directory path under datadirectory */ public static function getDirectoryContent($directory, $mimetype_filter = ''){ - if(strpos($directory,OC::$CONFIG_DATADIRECTORY)===0){ - $directory=substr($directory,strlen(OC::$CONFIG_DATADIRECTORY)); - } $files=OC_FileCache::getFolderContent($directory, false, $mimetype_filter); foreach($files as &$file){ $file['directory']=$directory; |