Pass mimetype along too as VFS widget and egw_link seem to expect them

This commit is contained in:
Nathan Gray 2015-04-16 16:22:22 +00:00
parent 45bc2123ee
commit dee59471ae

View File

@ -235,7 +235,7 @@ class historylog
{
$_query[] = array(
'table' => sqlfs_stream_wrapper::TABLE,
'cols' =>array('fs_id', 'fs_dir', '"filemanager"','COALESCE(fs_modifier,fs_creator)','"~file~"','fs_name','fs_modified', '""'),
'cols' =>array('fs_id', 'fs_dir', '"filemanager"','COALESCE(fs_modifier,fs_creator)','"~file~"','fs_name','fs_modified', 'fs_mime'),
'where' => array('fs_dir' => $file['ino'])
);
}
@ -270,8 +270,10 @@ class historylog
$row['history_new_value'] = array(
'path' => $path,
'name' => basename($path)
'name' => basename($path),
'mime' => $row['history_old_value']
);
$row['history_old_value'] = '';
if($new_version !== null)
{
$rows[$new_version]['old_value'] = $row['history_new_value'];