mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
* Filemanager popup: fixed sometimes missing first directory, eg. in favorites
caused by removing the first entry, which is not garantied to be the directory itself, as we sort by name
This commit is contained in:
parent
3819816248
commit
b4d761b571
@ -233,9 +233,10 @@ class filemanager_select
|
|||||||
{
|
{
|
||||||
$n = 0;
|
$n = 0;
|
||||||
$content['dir'] = array('mode' => $content['mode']);
|
$content['dir'] = array('mode' => $content['mode']);
|
||||||
array_shift($files); // remove directory itself
|
|
||||||
foreach($files as $path)
|
foreach($files as $path)
|
||||||
{
|
{
|
||||||
|
if ($path == $content['path']) continue; // remove directory itself
|
||||||
|
|
||||||
$name = egw_vfs::basename($path);
|
$name = egw_vfs::basename($path);
|
||||||
$is_dir = egw_vfs::is_dir($path);
|
$is_dir = egw_vfs::is_dir($path);
|
||||||
if ($content['mime'] && !$is_dir && egw_vfs::mime_content_type($path) != $content['mime'])
|
if ($content['mime'] && !$is_dir && egw_vfs::mime_content_type($path) != $content['mime'])
|
||||||
|
Loading…
Reference in New Issue
Block a user