Use egw_vfs::file_exists() instead of file_exists() to handle missing prefix.

Fixes not being able to symlink to vfs from link widget.
This commit is contained in:
Nathan Gray 2014-07-07 22:10:02 +00:00
parent 7eb528ee1f
commit db5fb7a86a

View File

@ -1180,9 +1180,12 @@ class egw_link extends solink
*/
static function link_file($app,$id,$file)//,$comment='')
{
// Don't try to link into app dir if there is no id
if(!$id) return;
$app_path = self::vfs_path($app,$id);
$ok = true;
if (file_exists($app_path) || ($ok = mkdir($app_path,0,true)))
if (egw_vfs::file_exists($app_path) || ($ok = egw_vfs::mkdir($app_path,0,true)))
{
if (!egw_vfs::stat($file))
{