From: garvinhicking Date: Mon, 25 Feb 2008 10:18:21 +0000 (+0000) Subject: Do not use draft entries X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=59f9cc953a6d0ff1e6da07738e1152cc5ad74a72;p=s9y.git Do not use draft entries --- 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