mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Get thumbnails working for filemanager links
This commit is contained in:
parent
4ecf649b83
commit
23f029cfcd
@ -60,6 +60,17 @@ class home_list_portlet extends home_portlet
|
||||
{
|
||||
$this->title = $context['title'];
|
||||
}
|
||||
foreach($context['list'] as &$item)
|
||||
{
|
||||
if($item['app'] == 'filemanager' || $item['app'] == 'file')
|
||||
{
|
||||
$item['app'] = 'file';
|
||||
$item['type'] = egw_vfs::mime_content_type($item['id']);
|
||||
|
||||
// Always reload...
|
||||
$need_reload = true;
|
||||
}
|
||||
}
|
||||
$this->context = $context;
|
||||
}
|
||||
|
||||
@ -103,8 +114,8 @@ class home_list_portlet extends home_portlet
|
||||
// Filemanager support - links need app = 'file' and type set
|
||||
foreach($content['list'] as &$list)
|
||||
{
|
||||
if($list['app'] == 'file') $list['app'] = 'filemanager';
|
||||
if($list['app'] == 'filemanager')
|
||||
if($list['app'] == 'filemanager') $list['app'] = 'file';
|
||||
if($list['app'] == 'file')
|
||||
{
|
||||
$list['app'] = 'file';
|
||||
$list['path'] = $list['title'] = $list['icon'] = $list['id'];
|
||||
|
Loading…
Reference in New Issue
Block a user