fixed bug egw.stylite.de#8079: new symlinks in /apps not visible on same request

This commit is contained in:
Ralf Becker 2010-05-22 08:41:26 +00:00
parent b0416e0bf1
commit aedaf485b3
2 changed files with 8 additions and 4 deletions

View File

@ -1220,7 +1220,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
') VALUES (:fs_name,:fs_dir,:fs_mode,:fs_uid,:fs_gid,:fs_created,:fs_modified,:fs_creator,:fs_mime,:fs_size,:fs_link)';
if (self::LOG_LEVEL > 2) $query = '/* '.__METHOD__.': '.__LINE__.' */ '.$query;
$stmt = self::$pdo->prepare($query);
unset(self::$stat_cache[$link]);
unset(self::$stat_cache[parse_url($link,PHP_URL_PATH)]);
return !!$stmt->execute(array(
'fs_name' => egw_vfs::basename($link),

View File

@ -7,7 +7,7 @@
* @package api
* @subpackage vfs
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2008-9 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2008-10 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @version $Id$
*/
@ -599,7 +599,11 @@ class vfs_stream_wrapper implements iface_stream_wrapper
*/
static function symlink($target,$link)
{
return self::_call_on_backend('symlink',array($target,$link),false,1); // 1=path is in $link!
if (($ret = self::_call_on_backend('symlink',array($target,$link),false,1))) // 1=path is in $link!
{
self::symlinkCache_remove($link);
}
return $ret;
}
/**
@ -717,7 +721,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
* @param boolean $check_symlink_components=true check if path contains symlinks in path components other then the last one
* @return array
*/
static function url_stat ( $path, $flags, $try_create_home=false, $check_symlink_components=true )
static function url_stat ( $path, $flags=0, $try_create_home=false, $check_symlink_components=true )
{
if (self::LOG_LEVEL > 1) error_log(__METHOD__."('$path',$flags,try_create_home=$try_create_home,check_symlink_components=$check_symlink_components)");