mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
"new method download_url"
This commit is contained in:
parent
f57f6a805b
commit
68dfe96fed
@ -798,6 +798,22 @@ class egw_vfs extends vfs_stream_wrapper
|
|||||||
|
|
||||||
return array_pop($parts);
|
return array_pop($parts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* URL to download a file
|
||||||
|
*
|
||||||
|
* We use our webdav handler as download url instead of an own download method.
|
||||||
|
* The webdav hander (filemanager/webdav.php) recognices eGW's session cookie and of cause understands regular GET requests.
|
||||||
|
*
|
||||||
|
* Please note: If you dont use eTemplate or the html class, you have to run this url throught egw::link() to get a full url
|
||||||
|
*
|
||||||
|
* @param string $path
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
static function download_url($path)
|
||||||
|
{
|
||||||
|
return '/filemanager/webdav.php'.$path;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
egw_vfs::$user = (int) $GLOBALS['egw_info']['user']['account_id'];
|
egw_vfs::$user = (int) $GLOBALS['egw_info']['user']['account_id'];
|
||||||
|
Loading…
Reference in New Issue
Block a user