mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
fix PHP Fatal error: Class 'EGroupware\Api\Vfs\Config' not found
This commit is contained in:
parent
71a384798f
commit
2a4535be58
@ -1201,7 +1201,7 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
|
|
||||||
if (!isset($GLOBALS['egw_info']['server']['vfs_fstab'])) // happens eg. in setup
|
if (!isset($GLOBALS['egw_info']['server']['vfs_fstab'])) // happens eg. in setup
|
||||||
{
|
{
|
||||||
$api_config = Config::read('phpgwapi');
|
$api_config = Api\Config::read('phpgwapi');
|
||||||
if (isset($api_config['vfs_fstab']) && is_array($api_config['vfs_fstab']))
|
if (isset($api_config['vfs_fstab']) && is_array($api_config['vfs_fstab']))
|
||||||
{
|
{
|
||||||
self::$fstab = $api_config['vfs_fstab'];
|
self::$fstab = $api_config['vfs_fstab'];
|
||||||
@ -1250,7 +1250,7 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
|
|
||||||
if ($persitent_mount)
|
if ($persitent_mount)
|
||||||
{
|
{
|
||||||
Config::save_value('vfs_fstab',self::$fstab,'phpgwapi');
|
Api\Config::save_value('vfs_fstab',self::$fstab,'phpgwapi');
|
||||||
$GLOBALS['egw_info']['server']['vfs_fstab'] = self::$fstab;
|
$GLOBALS['egw_info']['server']['vfs_fstab'] = self::$fstab;
|
||||||
// invalidate session cache
|
// invalidate session cache
|
||||||
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||||
@ -1281,7 +1281,7 @@ class StreamWrapper implements StreamWrapperIface
|
|||||||
}
|
}
|
||||||
unset(self::$fstab[$path]);
|
unset(self::$fstab[$path]);
|
||||||
|
|
||||||
Config::save_value('vfs_fstab',self::$fstab,'phpgwapi');
|
Api\Config::save_value('vfs_fstab',self::$fstab,'phpgwapi');
|
||||||
$GLOBALS['egw_info']['server']['vfs_fstab'] = self::$fstab;
|
$GLOBALS['egw_info']['server']['vfs_fstab'] = self::$fstab;
|
||||||
// invalidate session cache
|
// invalidate session cache
|
||||||
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
if (method_exists($GLOBALS['egw'],'invalidate_session_cache')) // egw object in setup is limited
|
||||||
|
Loading…
Reference in New Issue
Block a user