mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
make preview work again after search/new template change
This commit is contained in:
parent
845ec4bef6
commit
66b3603178
3 changed files with 5 additions and 9 deletions
|
@ -706,7 +706,7 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
|||
if($page_mode === 'preview')
|
||||
logger('preview: ' . print_r($threads,true));
|
||||
|
||||
// logger('page_template: ' . $page_template);
|
||||
logger('page_template: ' . $page_template);
|
||||
|
||||
// logger('nouveau: ' . print_r($threads,true));
|
||||
|
||||
|
@ -722,8 +722,8 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional') {
|
|||
'$dropping' => ($page_dropping?t('Delete Selected Items'):False),
|
||||
));
|
||||
|
||||
// if($page_mode === 'preview')
|
||||
// logger('preview: ' . $o);
|
||||
if($page_mode === 'preview')
|
||||
logger('preview: ' . $o);
|
||||
|
||||
return $o;
|
||||
|
||||
|
|
|
@ -3,11 +3,9 @@
|
|||
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
|
||||
*
|
||||
*}}
|
||||
{{foreach $threads as $thread}}
|
||||
{{foreach $thread.items as $thread_item}}
|
||||
{{foreach $threads as $thread_item}}
|
||||
{{include file="{{$thread_item.template}}" item=$thread_item}}
|
||||
{{/foreach}}
|
||||
{{/foreach}}
|
||||
|
||||
<div id="conversation-end"></div>
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{{ for $threads as $thread }}
|
||||
{{ for $thread.items as $thread_item }}
|
||||
{{ for $threads as $thread_item }}
|
||||
{{ inc $thread_item.template with $item=$thread_item }}{{ endinc }}
|
||||
{{ endfor }}
|
||||
{{ endfor }}
|
||||
|
||||
<div id="conversation-end"></div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue