Fix datadirectory detection in ownCloud 9

This commit is contained in:
RainLoop Team 2016-03-22 21:00:26 +03:00
parent d619cbcf9d
commit 27870cec26

View file

@ -166,6 +166,10 @@ class OC_RainLoop_Helper
{
$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' : '';
}