From 59f9cc953a6d0ff1e6da07738e1152cc5ad74a72 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 25 Feb 2008 10:18:21 +0000 Subject: [PATCH] Do not use draft entries --- .../serendipity_plugin_comments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php b/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php index 589b086..749dd66 100644 --- a/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php +++ b/plugins/serendipity_plugin_comments/serendipity_plugin_comments.php @@ -22,7 +22,7 @@ class serendipity_plugin_comments extends serendipity_plugin $propbag->add('description', PLUGIN_COMMENTS_BLAHBLAH); $propbag->add('stackable', true); $propbag->add('author', 'Garvin Hicking, Tadashi Jokagi, Judebert, G. Brockhaus'); - $propbag->add('version', '1.11'); + $propbag->add('version', '1.12'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -157,6 +157,7 @@ class serendipity_plugin_comments extends serendipity_plugin '.$serendipity['dbPrefix'].'entries AS e WHERE e.id = c.entry_id AND NOT (c.type = \'TRACKBACK\' AND c.author = \'' . serendipity_db_escape_string($serendipity['blogTitle']) . '\' AND c.title != \'\') + AND e.isdraft = \'false\' AND c.status = \'approved\' ' . $viewtype . ' ORDER BY c.timestamp DESC -- 2.39.5