mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
add missing $relpath
This commit is contained in:
parent
6490e4360f
commit
3d53fa9d97
@ -79,12 +79,14 @@ class Vfs extends File
|
||||
/**
|
||||
* Find all attachments, can be used to prepare the data for the widget on client-side
|
||||
*
|
||||
* @param string $path eg. "/apps/$app/$id/$rel_path"
|
||||
* @param string $path eg. "/apps/$app/$id/$relpath"
|
||||
* @return array
|
||||
* @throws Api\Exception\AssertionFailed
|
||||
*/
|
||||
public static function findAttachments($path)
|
||||
{
|
||||
list(,,,, $relpath) = explode('/', $path, 5);
|
||||
|
||||
$value = [];
|
||||
// Single file, already existing
|
||||
if (substr($path,-1) != '/' && Api\Vfs::file_exists($path) && !Api\Vfs::is_dir($path))
|
||||
|
Loading…
Reference in New Issue
Block a user