From 152641bf243dde9cf01d9a95038939ac9ddf0f3e Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 4 Nov 2012 20:53:59 -0800 Subject: that was certainly some fun debugging (not) --- include/conversation.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index 13b6c566c..e9e550a12 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1655,7 +1655,7 @@ function format_like($cnt,$arr,$type,$id) { }} -function status_editor($a,$x, $notes_cid = 0, $popup=false) { +function status_editor($a,$x,$popup=false) { $o = ''; @@ -1688,16 +1688,9 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) { $jotplugins = ''; $jotnets = ''; - $catsenabled = feature_enabled($x['profile_uid'],'categories'); - call_hooks('jot_tool', $jotplugins); call_hooks('jot_networks', $jotnets); - if($notes_cid) - $jotnets .= ''; - - $tpl = replace_macros($tpl,array('$jotplugins' => $jotplugins)); - $o .= replace_macros($tpl,array( '$return_path' => $a->query_string, '$action' => $a->get_baseurl(true) . '/item', @@ -1718,7 +1711,7 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) { '$shortnoloc' => t('clear location'), '$title' => "", '$placeholdertitle' => t('Set title'), - '$catsenabled' => $catsenabled, + '$catsenabled' => ((feature_enabled($x['profile_uid'],'categories')) ? 'categories' : ''), '$category' => "", '$placeholdercategory' => t('Categories (comma-separated list)'), '$wait' => t('Please wait'), @@ -1738,8 +1731,9 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) { '$acl' => $x['acl'], '$bang' => $x['bang'], '$profile_uid' => $x['profile_uid'], - '$preview' => t('Preview'), + '$preview' => ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''), '$sourceapp' => t($a->sourcename), + '$jotplugins' => $jotplugins, )); -- cgit v1.2.3