]> git.mjollnir.org Git - s9y.git/commitdiff
Save some memory, by re-assigning $ENTRIES after having parsed $CONTENT
authorgarvinhicking <garvinhicking>
Tue, 18 Apr 2006 09:53:38 +0000 (09:53 +0000)
committergarvinhicking <garvinhicking>
Tue, 18 Apr 2006 09:53:38 +0000 (09:53 +0000)
include/functions_comments.inc.php
include/functions_smarty.inc.php
include/genpage.inc.php

index ed3fa7a68fd7fc6235e2b6c62b41f3b52a240292..1037f5e67039fe139b2e8bee93716b145a449ebf 100644 (file)
@@ -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')) {
index a62938a00d34471a188c0f7ba4d6bde4a339348e..8fb45c83b25e2b143ca0ff37b91af9848fb6fbf9 100644 (file)
@@ -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';
     }
index 9ade1a7beaf347b5a6613725931aabf98854f5eb..5269896b406efc6c9c28f9128cb63c2b98de488c 100644 (file)
@@ -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 : */