diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-04-08 19:44:21 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-04-08 19:44:21 -0400 |
commit | f9ec3c66ff1305ca0647454d27793ac5365f7f4a (patch) | |
tree | 6978bc6679654a428b6192eeae856c0f9e2d0223 /Zotlabs/Lib | |
parent | 4760dc9bcb7e43be9c27cf83ba5273344384813d (diff) | |
download | volse-hubzilla-f9ec3c66ff1305ca0647454d27793ac5365f7f4a.tar.gz volse-hubzilla-f9ec3c66ff1305ca0647454d27793ac5365f7f4a.tar.bz2 volse-hubzilla-f9ec3c66ff1305ca0647454d27793ac5365f7f4a.zip |
Added feature setting for auto-save, defaulting to enabled.
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index d35d4732a..c2aa920b9 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -733,6 +733,8 @@ class ThreadItem { $arr = array('comment_buttons' => '','id' => $this->get_id()); 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' => '', @@ -768,7 +770,8 @@ 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)') ] + '$anonurl' => [ 'anonurl', t('Your website URL (optional)') ], + '$auto_save_draft' => $feature_auto_save_draft, )); return $comment_box; |