mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Fix datadirectory detection in ownCloud 9
This commit is contained in:
parent
d619cbcf9d
commit
27870cec26
1 changed files with 4 additions and 0 deletions
|
@ -166,6 +166,10 @@ class OC_RainLoop_Helper
|
||||||
{
|
{
|
||||||
$sData = rtrim(trim(OC_Config::getValue('datadirectory', '')), '\\/').'/';
|
$sData = rtrim(trim(OC_Config::getValue('datadirectory', '')), '\\/').'/';
|
||||||
}
|
}
|
||||||
|
else if (class_exists('OC'))
|
||||||
|
{
|
||||||
|
$sData = rtrim(trim(OC::$server->getSystemConfig()->getValue('datadirectory', '')), '\\/').'/';
|
||||||
|
}
|
||||||
|
|
||||||
return @is_dir($sData) ? $sData.'rainloop-storage' : '';
|
return @is_dir($sData) ? $sData.'rainloop-storage' : '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue