mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
fixed bug egw.stylite.de#8079: new symlinks in /apps not visible on same request
This commit is contained in:
parent
082aef12dc
commit
0f32405f0a
@ -1203,7 +1203,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),
|
||||
|
@ -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$
|
||||
*/
|
||||
|
||||
@ -598,7 +598,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;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -716,7 +720,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)");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user