diff --git a/Code/Widget/Activity_filter.php b/Code/Widget/Activity_filter.php index 92b72f878..7afd218d8 100644 --- a/Code/Widget/Activity_filter.php +++ b/Code/Widget/Activity_filter.php @@ -6,6 +6,7 @@ use App; use Code\Lib\Apps; use Code\Lib\Features; use Code\Extend\Hook; +use Code\Lib\PConfig; use Code\Render\Theme; @@ -248,7 +249,8 @@ class Activity_filter implements WidgetInterface '$content_id' => 'activity-filter-widget', '$reset' => $reset, '$content' => $content, - '$name' => $name + '$name' => $name, + '$display' => PConfig::Get(local_channel(), 'system', 'filter_menu_open') ? 'block' : 'none', ]); } return ''; diff --git a/view/tpl/activity_filter_widget.tpl b/view/tpl/activity_filter_widget.tpl index 7149a9917..bf6229427 100644 --- a/view/tpl/activity_filter_widget.tpl +++ b/view/tpl/activity_filter_widget.tpl @@ -21,7 +21,7 @@ {{/if}} -