aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-30 02:22:57 -0700
committerfriendica <info@friendica.com>2012-03-30 02:22:57 -0700
commit87539dbec4b73039f7f5e4fa58c3398d9e496834 (patch)
treeb5d18d07c817adc4fc02935318208568ac5cef25
parentd83bfd464baebf7d203a07d1bd92a00d2734d0ad (diff)
downloadvolse-hubzilla-87539dbec4b73039f7f5e4fa58c3398d9e496834.tar.gz
volse-hubzilla-87539dbec4b73039f7f5e4fa58c3398d9e496834.tar.bz2
volse-hubzilla-87539dbec4b73039f7f5e4fa58c3398d9e496834.zip
bug #352 - qcomment plugin disabled, qcomments still allowed
-rwxr-xr-xinclude/conversation.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 1c3ee43b0..402713b32 100755
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -532,9 +532,12 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
if ($shareable) $likebuttons['share'] = array( t('Share this'), t('share'));
}
+ $qc = $qcomment = null;
- $qc = ((local_user()) ? get_pconfig(local_user(),'qcomment','words') : null);
- $qcomment = (($qc) ? explode("\n",$qc) : null);
+ if(in_array('qcomment',$a->plugins)) {
+ $qc = ((local_user()) ? get_pconfig(local_user(),'qcomment','words') : null);
+ $qcomment = (($qc) ? explode("\n",$qc) : null);
+ }
if(($show_comment_box) || (($show_comment_box == false) && ($override_comment_box == false) && ($item['last-child']))) {
$comment = replace_macros($cmnt_tpl,array(