"- 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:
Ralf Becker 2010-04-27 07:35:26 +00:00
parent 09539d3ca2
commit 06fb05a891

View File

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