From: slothman Date: Fri, 8 Feb 2008 02:35:44 +0000 (+0000) Subject: Most minor bugfix imaginable: add . to make plugin respect selected categories X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3374a3605ff785ee38446696f57ccd89c3a47995;p=s9y.git Most minor bugfix imaginable: add . to make plugin respect selected categories --- diff --git a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php index 6aa5943..636411b 100644 --- a/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php +++ b/plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php @@ -20,8 +20,8 @@ class serendipity_plugin_recententries extends serendipity_plugin { $propbag->add('name', PLUGIN_RECENTENTRIES_TITLE); $propbag->add('description', PLUGIN_RECENTENTRIES_BLAHBLAH); $propbag->add('stackable', true); - $propbag->add('author', 'Christian Machmeier, Christian Brabandt'); - $propbag->add('version', '1.8'); + $propbag->add('author', 'Christian Machmeier, Christian Brabandt, Judebert'); + $propbag->add('version', '1.9'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -178,7 +178,7 @@ class serendipity_plugin_recententries extends serendipity_plugin { $sql_order = "ORDER BY timestamp DESC "; } - $sql_condition['and'] = "AND timestamp <= " . time(); + $sql_condition['and'] .= "AND timestamp <= " . time(); serendipity_ACL_SQL($sql_condition, $category == 'none'); $entries_query = "SELECT DISTINCT id,