From 63e5bf3aaba845494038e948787e05b8307d889c Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 17 Sep 2007 09:06:03 +0000 Subject: [PATCH] Fix resetting fetchLimit --- .../serendipity_plugin_history/serendipity_plugin_history.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/serendipity_plugin_history/serendipity_plugin_history.php b/plugins/serendipity_plugin_history/serendipity_plugin_history.php index 246db04..1f731e1 100644 --- a/plugins/serendipity_plugin_history/serendipity_plugin_history.php +++ b/plugins/serendipity_plugin_history/serendipity_plugin_history.php @@ -22,7 +22,7 @@ class serendipity_plugin_history extends serendipity_plugin $propbag->add('description', PLUGIN_HISTORY_DESC); $propbag->add('stackable', true); $propbag->add('author', 'Jannis Hermanns'); - $propbag->add('version', '1.3'); + $propbag->add('version', '1.4'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -164,11 +164,13 @@ class serendipity_plugin_history extends serendipity_plugin $dateformat = '%a, %d.%m.%Y %H:%M'; } + $oldLim = $serendipity['fetchLimit']; $nowts = serendipity_serverOffsetHour(); $maxts = mktime(23, 59, 59, date('m', $nowts), date('d', $nowts), date('Y', $nowts)); $mints = mktime(0, 0, 0, date('m', $nowts), date('d', $nowts), date('Y', $nowts)); $e = serendipity_fetchEntries(array(($mints-$max_age*86400), ($maxts-$min_age*86400)), $full, $max_entries); + $serendipity['fetchLimit'] = $oldLim; echo (empty($intro)) ? '' : "$intro
"; if (!is_array($e)) { -- 2.39.5