From 815164588283ffe83568299c9623dcf99670116d Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Thu, 10 Oct 2013 15:58:55 +0200 Subject: [PATCH] Don't emit comments, trackbacks or comment form in backend preview. Fix by @onli. References #62 --- include/functions_entries.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index dee36e88..92d7437e 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -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) {