mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Fix vfs_stream_wrapper not found error by switching to namespaced class name
This commit is contained in:
parent
cf657413c7
commit
4be6ad6bed
@ -303,11 +303,11 @@
|
||||
if($scheme == '' || $scheme == 'file') {
|
||||
return 'Direct file access not allowed';
|
||||
}
|
||||
if($scheme == vfs_stream_wrapper::SCHEME && !in_array(vfs_stream_wrapper::SCHEME, stream_get_wrappers())) {
|
||||
stream_wrapper_register(vfs_stream_wrapper::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL);
|
||||
if($scheme == EGroupware\Api\Vfs::SCHEME && !in_array(EGroupware\Api\Vfs::SCHEME, stream_get_wrappers())) {
|
||||
stream_wrapper_register(EGroupware\Api\Vfs::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL);
|
||||
}
|
||||
|
||||
if ($data['type'] == 'import' && ($scheme == egw_vfs::SCHEME && !egw_vfs::is_readable($data['target'])))
|
||||
if ($data['type'] == 'import' && ($scheme == EGroupware\Api\Vfs::SCHEME && !egw_vfs::is_readable($data['target'])))
|
||||
{
|
||||
return lang('%1 is not readable',$data['target']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user