From: garvinhicking Date: Tue, 18 Apr 2006 09:53:38 +0000 (+0000) Subject: Save some memory, by re-assigning $ENTRIES after having parsed $CONTENT X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0c7685561abe8681568e5950e3e17de64324393f;p=s9y.git Save some memory, by re-assigning $ENTRIES after having parsed $CONTENT --- diff --git a/include/functions_comments.inc.php b/include/functions_comments.inc.php index ed3fa7a..1037f5e 100644 --- a/include/functions_comments.inc.php +++ b/include/functions_comments.inc.php @@ -307,7 +307,7 @@ function serendipity_deleteComment($id, $entry_id, $type='comments') { if ($id < 1 OR $entry_id < 1) { return false; } - + if ($_SESSION['serendipityAuthedUser'] === true) { $admin = ''; if (!serendipity_checkPermission('adminEntriesMaintainOthers')) { diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index a62938a..8fb45c8 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -760,6 +760,7 @@ global $serendipity; $serendipity['smarty']->assign('content_message', $raw_data); serendipity_smarty_fetch('CONTENT', 'content.tpl'); + $serendipity['smarty']->assign('ENTRIES', ''); if (empty($serendipity['smarty_file'])) { $serendipity['smarty_file'] = '404.tpl'; } diff --git a/include/genpage.inc.php b/include/genpage.inc.php index 9ade1a7..5269896 100644 --- a/include/genpage.inc.php +++ b/include/genpage.inc.php @@ -106,6 +106,7 @@ if ($serendipity['smarty_raw_mode']) { } serendipity_smarty_fetch('CONTENT', 'content.tpl'); + $serendipity['smarty']->assign('ENTRIES', ''); } /* vim: set sts=4 ts=4 expandtab : */