]> git.mjollnir.org Git - s9y.git/commitdiff
Most minor bugfix imaginable: add . to make plugin respect selected categories
authorslothman <slothman>
Fri, 8 Feb 2008 02:35:44 +0000 (02:35 +0000)
committerslothman <slothman>
Fri, 8 Feb 2008 02:35:44 +0000 (02:35 +0000)
plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php

index 6aa594370044a7709c91d0d8042ebcb31c6f518d..636411b84d5fe58d42199b19896dd5bfae4ae724 100644 (file)
@@ -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,