]> git.mxchange.org Git - friendica.git/commitdiff
bug #352 - qcomment plugin disabled, qcomments still allowed
authorfriendica <info@friendica.com>
Fri, 30 Mar 2012 09:22:57 +0000 (02:22 -0700)
committerfriendica <info@friendica.com>
Fri, 30 Mar 2012 09:22:57 +0000 (02:22 -0700)
include/conversation.php

index 1c3ee43b0a41bf117668cf3fa2b7194a7f5876a5..402713b32dc13445c943328842e0eb9fd6319538 100755 (executable)
@@ -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(