mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix Scrutinizer "bugs"
This commit is contained in:
parent
01659d13c9
commit
1b60ef19f9
@ -101,7 +101,7 @@ class filemanager_merge extends Api\Storage\Merge
|
||||
$file['ctime'] = Api\DateTime::to($file['ctime']);
|
||||
|
||||
$file['name'] = Vfs::basename($id);
|
||||
$file['dir'] = Vfs::decodePath(Vfs::dirname($id));
|
||||
$file['dir'] = ($dir = Vfs::dirname($id)) ? Vfs::decodePath($dir) : '';
|
||||
$dirlist = explode('/',$file['dir']);
|
||||
$file['folder'] = array_pop($dirlist);
|
||||
$file['folder_file'] = $file['folder'] . '/'.$file['name'];
|
||||
|
Loading…
Reference in New Issue
Block a user