forked from extern/egroupware
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:
parent
7eb528ee1f
commit
db5fb7a86a
@ -1180,9 +1180,12 @@ class egw_link extends solink
|
|||||||
*/
|
*/
|
||||||
static function link_file($app,$id,$file)//,$comment='')
|
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);
|
$app_path = self::vfs_path($app,$id);
|
||||||
$ok = true;
|
$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))
|
if (!egw_vfs::stat($file))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user