check if caview really exists

This commit is contained in:
Bjoern Schiessle 2012-07-05 12:17:33 +02:00
parent 55cde0e5aa
commit 378fa2bc86
2 changed files with 6 additions and 4 deletions

View File

@ -1,8 +1,8 @@
ErrorDocument 403 /core/templates/403.php ErrorDocument 403 /core/templates/403.php
ErrorDocument 404 /core/templates/404.php ErrorDocument 404 /core/templates/404.php
<IfModule mod_php5.c> <IfModule mod_php5.c>
php_value upload_max_filesize 513M php_value upload_max_filesize 2000M
php_value post_max_size 513M php_value post_max_size 2000M
php_value memory_limit 512M php_value memory_limit 512M
<IfModule env_module> <IfModule env_module>
SetEnv htaccessWorking true SetEnv htaccessWorking true

View File

@ -36,8 +36,10 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
$this->root.='/'; $this->root.='/';
} }
$caview = \OCP\Files::getStorage('files_external'); $capath = '';
$capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath(""); if($caview = \OCP\Files::getStorage('files_external')) {
$capath=\OCP\Config::getSystemValue('datadirectory').$caview->getAbsolutePath("");
}
$settings = array( $settings = array(
'baseUri' => $this->createBaseUri(), 'baseUri' => $this->createBaseUri(),
'userName' => $this->user, 'userName' => $this->user,