diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-22 17:17:00 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-03-22 17:17:00 -0700 |
commit | 05e11844e5a0f90b7f45f27047b2926442484108 (patch) | |
tree | 489ae1ec89f090f0395c25ea537b45fa86bf7ede /include | |
parent | 4ba91cf4e3da5637a8c2a4a65f84c3178ce0d343 (diff) | |
download | volse-hubzilla-05e11844e5a0f90b7f45f27047b2926442484108.tar.gz volse-hubzilla-05e11844e5a0f90b7f45f27047b2926442484108.tar.bz2 volse-hubzilla-05e11844e5a0f90b7f45f27047b2926442484108.zip |
make list mode work in cards and articles
Diffstat (limited to 'include')
-rw-r--r-- | include/conversation.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php index 6374267eb..64beb1b0e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -838,11 +838,11 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa $item_object = new Zotlabs\Lib\ThreadItem($item); $conv->add_thread($item_object); - if($page_mode === 'list') { + if(($page_mode === 'list') || ($page_mode === 'pager_list')) { $item_object->set_template('conv_list.tpl'); $item_object->set_display_mode('list'); } - if($page_mode === 'cards') { + if($mode === 'cards' || $mode === 'articles') { $item_object->set_reload($jsreload); } @@ -857,7 +857,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa } } - if($page_mode === 'traditional' || $page_mode === 'preview') { + if(in_array($page_mode, [ 'traditional', 'preview', 'pager_list'] )) { $page_template = get_markup_template("threaded_conversation.tpl"); } elseif($update) { |