From 06fb05a8913d10a241770cb2239ec92165809563 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 27 Apr 2010 07:35:26 +0000 Subject: [PATCH] "- 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" --- phpgwapi/inc/class.egw_link.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index c33926e4b0..0ffb021fa3 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -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; }