aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php32
1 files changed, 24 insertions, 8 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 958400db3..50ce51558 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -346,6 +346,10 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
$page_writeable = false;
}
+
+ $page_dropping = ((local_user() && local_user() == $profile_owner) ? true : false);
+
+
if($update)
$return_url = $_SESSION['return_url'];
else
@@ -869,14 +873,26 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
}
}
- $page_template = get_markup_template("conversation.tpl");
- $o = replace_macros($page_template, array(
- '$baseurl' => $a->get_baseurl($ssl_state),
- '$mode' => $mode,
- '$user' => $a->user,
- '$threads' => $threads,
- '$dropping' => ($dropping?t('Delete Selected Items'):False),
- ));
+ logger('threads: ' . count($threads) . ' update: ' . $update);
+
+ if($update) {
+ $page_template = get_markup_template("conv.tpl");
+ $o = replace_macros($page_template, array(
+ '$baseurl' => $a->get_baseurl($ssl_state),
+ '$mode' => $mode,
+ '$user' => $a->user,
+ '$threads' => $threads,
+ ));
+ }
+ else {
+ $page_template = get_markup_template("conv_frame.tpl");
+ $o = replace_macros($page_template, array(
+ '$baseurl' => $a->get_baseurl($ssl_state),
+ '$mode' => $mode,
+ '$user' => $a->user,
+ '$dropping' => ($page_dropping?t('Delete Selected Items'):False),
+ ));
+ }
return $o;
}}