aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-06 04:07:10 -0800
committerfriendica <info@friendica.com>2013-01-06 04:07:10 -0800
commit7cd014e93ce1ebb2fded0bdcc093b982dd9ce57b (patch)
tree0cc189a3ae09f27204574dd56fc0294eec4d873d /include/conversation.php
parent6d9d07bdde4284906c1e0f1d2d7a05c87ed3d6e1 (diff)
downloadvolse-hubzilla-7cd014e93ce1ebb2fded0bdcc093b982dd9ce57b.tar.gz
volse-hubzilla-7cd014e93ce1ebb2fded0bdcc093b982dd9ce57b.tar.bz2
volse-hubzilla-7cd014e93ce1ebb2fded0bdcc093b982dd9ce57b.zip
make preview work fix some other nits
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ea2f84cbf..7ad231b58 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -472,7 +472,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
$page_template = get_markup_template("conversation.tpl");
- if($items && count($items)) {
+ if($items) {
if($mode === 'network-new' || $mode === 'search' || $mode === 'community') {
@@ -696,6 +696,9 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
$threads = null;
}
+ if($page_mode === 'preview')
+ logger('preview: ' . print_r($threads,true));
+
$o = replace_macros($page_template, array(
'$baseurl' => $a->get_baseurl($ssl_state),
'$live_update' => $live_update_div,
@@ -707,6 +710,9 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
'$dropping' => ($page_dropping?t('Delete Selected Items'):False),
));
+ if($page_mode === 'preview')
+ logger('preview: ' . $o);
+
return $o;