mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
"- using sqlfs_stream_wrapper::id2path instead of links_stream_wrapper::id2path, as it's the same, but allows to replace links_stream_wrapper with an other class (based on links_stream_wrapper and sqlfs_stream_wrapper)
- using egw_vfs::urlstat instead of links_stream_wrapper::urlstat, to not depend on using links_stream_wrapper --> required to do versioning on the links"
This commit is contained in:
parent
09539d3ca2
commit
06fb05a891
@ -927,7 +927,7 @@ class egw_link extends solink
|
||||
{
|
||||
if ((int)$app > 0) // is file_id
|
||||
{
|
||||
$url = links_stream_wrapper::PREFIX.links_stream_wrapper::id2path($app);
|
||||
$url = egw_vfs::resolve_url(sqlfs_stream_wrapper::id2path($app));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -987,8 +987,8 @@ class egw_link extends solink
|
||||
{
|
||||
if (!is_array($fileinfo))
|
||||
{
|
||||
$url = links_stream_wrapper::id2path($fileinfo);
|
||||
if (!($fileinfo = links_stream_wrapper::url_stat($url,STREAM_URL_STAT_QUIET)))
|
||||
$url = sqlfs_stream_wrapper::id2path($fileinfo);
|
||||
if (!($fileinfo = egw_vfs::url_stat($url,STREAM_URL_STAT_QUIET)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user