diff options
Diffstat (limited to 'include/menubar.inc.php')
-rw-r--r-- | include/menubar.inc.php | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php index a57db5ea7..dce77aef6 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -65,26 +65,28 @@ foreach ($conf['links'] as $url => $label) } //------------------------------------------------------------------------ filter -if ($filter['enabled']) +if (!empty($conf['filter_pages']) and get_filter_page_value('used')) { - $template->assign_block_vars( - 'stop_filter', - array( - 'URL' => add_url_params(make_index_url(array()), array('filter' => 'stop')) - ) - ); -} -else -{ - $template->assign_block_vars( - 'start_filter', - array( - 'URL' => add_url_params(make_index_url(array()), array('filter' => 'start')) - ) - ); + if ($filter['enabled']) + { + $template->assign_block_vars( + 'stop_filter', + array( + 'URL' => add_url_params(make_index_url(array()), array('filter' => 'stop')) + ) + ); + } + else + { + $template->assign_block_vars( + 'start_filter', + array( + 'URL' => add_url_params(make_index_url(array()), array('filter' => 'start-'.$user['recent_period'])) + ) + ); + } } - //------------------------------------------------------------------------ tags if ('tags' == $page['section']) { |