Move auto_save_draft to header from thread comment

(cherry picked from commit c86b35da701674510a97ccc21e46581bd864cc31)
This commit is contained in:
DM42.Net Hubzilla Development
2019-11-28 05:27:12 +00:00
committed by Mario
parent 6c8d1bdffe
commit 3e133bbfa3
5 changed files with 5 additions and 11 deletions

View File

@@ -778,8 +778,6 @@ class ThreadItem {
call_hooks('comment_buttons',$arr);
$comment_buttons = $arr['comment_buttons'];
$feature_auto_save_draft = ((feature_enabled($conv->get_profile_owner(), 'auto_save_draft')) ? "true" : "false");
$comment_box = replace_macros($template,array(
'$return_path' => '',
'$threaded' => $this->is_threaded(),
@@ -814,8 +812,7 @@ class ThreadItem {
'$anoncomments' => ((($conv->get_mode() === 'channel' || $conv->get_mode() === 'display') && perm_is_allowed($conv->get_profile_owner(),'','post_comments')) ? true : false),
'$anonname' => [ 'anonname', t('Your full name (required)') ],
'$anonmail' => [ 'anonmail', t('Your email address (required)') ],
'$anonurl' => [ 'anonurl', t('Your website URL (optional)') ],
'$auto_save_draft' => $feature_auto_save_draft
'$anonurl' => [ 'anonurl', t('Your website URL (optional)') ]
));
return $comment_box;