aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-26 18:36:51 -0700
committerFriendika <info@friendika.com>2011-04-26 18:36:51 -0700
commitcde17704ddbbe2b4926824aa2aa7aec7a9ac2dd6 (patch)
tree11a698bfe552656d5cc42c2df732776c5bfd1bd2
parent5f1bdad4bb1ee17508fe80a1d2b38fa9afe1f842 (diff)
downloadvolse-hubzilla-cde17704ddbbe2b4926824aa2aa7aec7a9ac2dd6.tar.gz
volse-hubzilla-cde17704ddbbe2b4926824aa2aa7aec7a9ac2dd6.tar.bz2
volse-hubzilla-cde17704ddbbe2b4926824aa2aa7aec7a9ac2dd6.zip
over-ride comment box
-rw-r--r--include/conversation.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 1c56fa1bf..8e7554577 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -294,6 +294,7 @@ function conversation(&$a, $items, $mode, $update) {
$comments_seen ++;
+ $override_coment_box = (($page_writeable) && ($item_writeable) ? true : false);
$show_comment_box = ((($page_writeable) && ($item_writeable) && ($comments_seen == $comments[$item['parent']])) ? true : false);
if(($comments[$item['parent']] > 2) && ($comments_seen <= ($comments[$item['parent']] - 2)) && ($item['gravity'] == 6)) {
@@ -368,7 +369,7 @@ function conversation(&$a, $items, $mode, $update) {
));
}
- if(($show_comment_box) || (($show_comment_box == false) && ($item['last-child']))) {
+ if(($show_comment_box) || (($show_comment_box == false) && ($override_comment_box == false) && ($item['last-child']))) {
$comment = replace_macros($cmnt_tpl,array(
'$return_path' => '',
'$jsreload' => (($mode === 'display') ? $_SESSION['return_url'] : ''),