allow to call download url with an vfs-url instead of an path

This commit is contained in:
Ralf Becker 2008-04-21 11:05:34 +00:00
parent ae821396b5
commit 2a1d86911b

View File

@ -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;
} }