mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 04:31:06 +01:00
fixed sqlfs_stream_wrapper::dir_opendir("links://default/apps/$app/$id",0) links://default/apps/$app/$id is no directory!
This commit is contained in:
parent
5d8fe4498e
commit
ba316c51c9
@ -297,6 +297,25 @@ class links_stream_wrapper extends links_stream_wrapper_parent
|
||||
}
|
||||
return parent::stream_open($url,$mode,$options,$opened_path);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method is called immediately when your stream object is created for examining directory contents with opendir().
|
||||
*
|
||||
* Reimplemented to give no error, if entry directory does not exist.
|
||||
*
|
||||
* @param string $path URL that was passed to opendir() and that this object is expected to explore.
|
||||
* @param $options
|
||||
* @return booelan
|
||||
*/
|
||||
function dir_opendir ( $url, $options )
|
||||
{
|
||||
if (!parent::url_stat($url, STREAM_URL_STAT_QUIET) && self::url_stat($url, STREAM_URL_STAT_QUIET))
|
||||
{
|
||||
$this->opened_dir = array();
|
||||
return true;
|
||||
}
|
||||
return parent::dir_opendir($url, $options);
|
||||
}
|
||||
}
|
||||
|
||||
stream_register_wrapper(links_stream_wrapper::SCHEME ,'links_stream_wrapper');
|
||||
|
Loading…
Reference in New Issue
Block a user