]> git.mxchange.org Git - friendica.git/commitdiff
Problem with comment box, debug.
authorDomovoy <domovoy@errlock.org>
Sun, 12 Aug 2012 18:11:14 +0000 (20:11 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 12 Aug 2012 18:11:14 +0000 (20:11 +0200)
object/Item.php

index 7f883b41d522b3c1d6179219025a23a635c36a04..2505b8aee0ba656cf19d1f5b310ec63429f49885 100644 (file)
@@ -477,6 +477,8 @@ class Item extends BaseObject {
                        $ww = 'ww';
 
                if($conv->is_writeable() && $this->is_writeable()) {
+                       logger('[DEBUG] Item::get_comment_box : Comment box is visible.', LOGGER_DEBUG);
+                       
                        $a = $this->get_app();
                        $qc = $qcomment =  null;
 
@@ -514,6 +516,9 @@ class Item extends BaseObject {
                                '$ww' => (($conv->get_mode() === 'network') ? $ww : '')
                        ));
                }
+               else {
+                       logger('[DEBUG] Item::get_comment_box : Comment box is NOT visible. Conv: '. ($conv->is_writeable() ? 'yes' : 'no') .' Item: '. ($this->is_writeable() ? 'yes' : 'no'), LOGGER_DEBUG);
+               }
 
                return $comment_box;
        }