From e295765bef651ee6a4cd96d30f08c5c2e7629af1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 2 Jan 2026 15:31:54 +0100 Subject: [PATCH] fix typo and wrongedited timestamp. also add data-{id, type} to cloud directory listings --- include/attach.php | 5 +++-- include/text.php | 2 +- view/tpl/cloud_directory.tpl | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/attach.php b/include/attach.php index c471337b7..9772d7d2a 100644 --- a/include/attach.php +++ b/include/attach.php @@ -930,12 +930,13 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { ); } elseif($options === 'update') { - $r = q("update attach set filename = '%s', filetype = '%s', folder = '%s', edited = '%s', os_storage = %d, is_photo = %d, os_path = '%s', + $r = q("update attach set filename = '%s', filetype = '%s', filesize = %d, folder = '%s', edited = '%s', os_storage = %d, is_photo = %d, os_path = '%s', display_path = '%s', allow_cid = '%s', allow_gid = '%s', deny_cid = '%s', deny_gid = '%s' where id = %d and uid = %d", dbesc((array_key_exists('filename',$arr)) ? $arr['filename'] : $x[0]['filename']), dbesc((array_key_exists('filetype',$arr)) ? $arr['filetype'] : $x[0]['filetype']), + dbesc((array_key_exists('filesize',$arr)) ? $arr['filesize'] : $x[0]['filesize']), dbesc(($folder_hash) ? $folder_hash : $x[0]['folder']), - dbesc($created), + dbesc($edited), dbesc((array_key_exists('os_storage',$arr)) ? $arr['os_storage'] : $x[0]['os_storage']), dbesc((array_key_exists('is_photo',$arr)) ? $arr['is_photo'] : $x[0]['is_photo']), dbesc((array_key_exists('os_path',$arr)) ? $arr['os_path'] : $x[0]['os_path']), diff --git a/include/text.php b/include/text.php index 2e0286fd6..cfdd5a6b3 100644 --- a/include/text.php +++ b/include/text.php @@ -3209,7 +3209,7 @@ function getIconFromType($type) { 'text/uri-list' => 'bi-box-arrow-up-right', 'application/msword' => 'bi-file-earmark-word', 'application/pdf' => 'bi-file-earmark-pdf', - 'application/vnd.oasis.opendocument.text' => 'bifile--earmark-text', + 'application/vnd.oasis.opendocument.text' => 'bi-file-earmark-text', 'application/epub+zip' => 'bi-file-earmark-text', //Spreadsheet 'application/vnd.oasis.opendocument.spreadsheet' => 'bi-file-earmark-spreadsheet', diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index ec2d1afe1..11436bbed 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -147,7 +147,7 @@ {{/if}} - {{$item.name}} + {{$item.name}} {{$item.terms}} {{if $item.lockstate == 'lock'}}