summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
committerMorris Jobke <hey@morrisjobke.de>2017-01-19 19:49:41 -0600
commita4ad8af6e3f0247db6f74dfcddc144e91f61fe84 (patch)
treeff957103206534edb0b29756b69f0dfaeadbf538 /apps/files_trashbin
parent48a3f2a8a2d6217c9938c3719fb752633de7c082 (diff)
downloadnextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.tar.gz
nextcloud-server-a4ad8af6e3f0247db6f74dfcddc144e91f61fe84.zip
Add proper default value for datadir
* better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index e73d6b0ac69..2e66a6b96e1 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -902,7 +902,7 @@ class Trashbin {
* @return integer size of the folder
*/
private static function calculateSize($view) {
- $root = \OC::$server->getConfig()->getSystemValue('datadirectory') . $view->getAbsolutePath('');
+ $root = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . $view->getAbsolutePath('');
if (!file_exists($root)) {
return 0;
}