diff options
author | Mario <mario@mariovavti.com> | 2022-07-15 17:50:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-07-15 17:50:02 +0000 |
commit | d6a9a9927c23e8b4307dc2164407481f8c542682 (patch) | |
tree | df67d55b5e19b884c02d92e014cfd5c4e24406ad /include | |
parent | 40b46368584036ede12fbc94619497bba73b6095 (diff) | |
download | volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.gz volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.bz2 volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.zip |
HQ dashboard - initial checkin
Diffstat (limited to 'include')
-rw-r--r-- | include/attach.php | 3 | ||||
-rw-r--r-- | include/conversation.php | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index 2109b84f1..32a86fcba 100644 --- a/include/attach.php +++ b/include/attach.php @@ -2702,10 +2702,11 @@ function attach_move($channel_id, $resource_id, $new_folder_hash, $newname = '', } - q("update attach set content = '%s', folder = '%s', filename = '%s' where id = %d", + q("update attach set content = '%s', folder = '%s', filename = '%s', edited = '%s' where id = %d", dbescbin($newstorepath), dbesc($new_folder_hash), dbesc($filename), + dbesc(datetime_convert()), intval($r[0]['id']) ); diff --git a/include/conversation.php b/include/conversation.php index 1d6295df7..d509342d4 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1719,12 +1719,14 @@ function prepare_page($item) { } $body = prepare_body($item, true, [ 'newwin' => false ]); + $edit_link = (($item['uid'] === local_channel()) ? z_root() . '/editwebpage/' . argv(1) . '/' . $item['id'] : ''); if(App::$page['template'] == 'none') { $tpl = 'page_display_empty.tpl'; return replace_macros(get_markup_template($tpl), array( - '$body' => $body['html'] + '$body' => $body['html'], + '$edit_link' => $edit_link )); } @@ -1741,6 +1743,7 @@ function prepare_page($item) { '$body' => $body['html'], '$preview' => $preview, '$link' => $link, + '$edit_link' => $edit_link )); } |