forked from extern/egroupware
allow to call download url with an vfs-url instead of an path
This commit is contained in:
parent
ae821396b5
commit
2a1d86911b
@ -940,6 +940,10 @@ class egw_vfs extends vfs_stream_wrapper
|
|||||||
*/
|
*/
|
||||||
static function download_url($path,$force_download=false)
|
static function download_url($path,$force_download=false)
|
||||||
{
|
{
|
||||||
|
if ($path[0] != '/')
|
||||||
|
{
|
||||||
|
$path = parse_url($path,PHP_URL_PATH);
|
||||||
|
}
|
||||||
return '/filemanager/webdav.php'.$path;
|
return '/filemanager/webdav.php'.$path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user