R47531 - /trunk/phpgwapi/inc/class.egw_link.inc.php

Author: nathangray
New Revision: 47531

URL: http://svn.stylite.de/viewvc/egroupware?rev=47531&view=rev
Log:
Use egw_vfs::file_exists() instead of file_exists() to handle missing prefix.
Fixes not being able to symlink to vfs from link widget.

Modified:
trunk/phpgwapi/inc/class.egw_link.inc.php

Modified: trunk/phpgwapi/inc/class.egw_link.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.egw_link.inc.php?rev=47531&r1=47530&r2=47531&view=diff

— trunk/phpgwapi/inc/class.egw_link.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_link.inc.php Tue Jul 8 00:10:02 2014
@@ -1180,9 +1180,12 @@
*/
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))
      	{
    

Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs