aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 17:46:20 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 17:46:20 -0700
commit3b68df1be6173cbcc50386efc0161ece2015112d (patch)
treee075614cc9faa7a3cf1f93cff8c91cf0da34e663 /include/conversation.php
parent9518dc0e4ee40c9672e533afbb1a506c3a85c598 (diff)
downloadvolse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.tar.gz
volse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.tar.bz2
volse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.zip
several card enhancements
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index c9142ac30..e0de6fdce 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1305,6 +1305,11 @@ function status_editor($a, $x, $popup = false) {
if(! $cipher)
$cipher = 'aes256';
+ if(array_key_exists('catsenabled',$x))
+ $catsenabled = $x['catsenabled'];
+ else
+ $catsenabled = ((feature_enabled($x['profile_uid'], 'categories') && (! $webpage)) ? 'categories' : '');
+
// avoid illegal offset errors
if(! array_key_exists('permissions',$x))
$x['permissions'] = [ 'allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => '' ];
@@ -1349,7 +1354,7 @@ function status_editor($a, $x, $popup = false) {
'$clearloc' => $clearloc,
'$title' => ((x($x, 'title')) ? htmlspecialchars($x['title'], ENT_COMPAT,'UTF-8') : ''),
'$placeholdertitle' => ((x($x, 'placeholdertitle')) ? $x['placeholdertitle'] : t('Title (optional)')),
- '$catsenabled' => ((feature_enabled($x['profile_uid'], 'categories') && (! $webpage)) ? 'categories' : ''),
+ '$catsenabled' => $catsenabled,
'$category' => ((x($x, 'category')) ? $x['category'] : ''),
'$placeholdercategory' => t('Categories (optional, comma-separated list)'),
'$permset' => t('Permission settings'),