Don't emit comments, trackbacks or comment form in backend preview.
Fix by @onli. References #62
This commit is contained in:
parent
daa3afe812
commit
8151645882
@ -1239,6 +1239,10 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
|
||||
$serendipity['smarty']->assignByRef('entries', $dategroup);
|
||||
unset($entries, $dategroup);
|
||||
|
||||
$serendipity['smarty']->assign(array(
|
||||
'is_preview' => $preview
|
||||
));
|
||||
|
||||
if (isset($serendipity['short_archives']) && $serendipity['short_archives']) {
|
||||
return serendipity_smarty_fetch($smarty_block, 'entries_summary.tpl', true);
|
||||
} elseif ($smarty_fetch == true) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user