diff --git a/main/install/configuration.dist.php b/main/install/configuration.dist.php index 2f76cfebe9..0cdd6eed7d 100755 --- a/main/install/configuration.dist.php +++ b/main/install/configuration.dist.php @@ -1104,12 +1104,12 @@ VALUES (2, 13, 'session_courses_read_only_mode', 'Lock Course In Session', 1, 1, // Disable course report graphs //$_configuration['hide_course_report_graph'] = false; +// Visually "fold" forum categories by default +// $_configuration['forum_fold_categories'] = false; + // ------ Custom DB changes (keep this at the end) // Add user activation by confirmation email // This option prevents the new user to login in the platform if your account is not confirmed via email // You need add a new option called "confirmation" to the registration settings //INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_registration', 'confirmation', 'MailConfirmation'); // ------ (End) Custom DB changes - -// Visually "fold" forum categories by default -// $_configuration['forum_fold_categories'] = false; \ No newline at end of file diff --git a/main/template/default/forum/list.tpl b/main/template/default/forum/list.tpl index 7f6316cc29..a49c63cbfb 100644 --- a/main/template/default/forum/list.tpl +++ b/main/template/default/forum/list.tpl @@ -2,13 +2,14 @@ {% block content %} {{ form_content }} {% set configuration = 'forum_fold_categories'|api_get_configuration_value %} - {% if(configuration == true) %} + {% if (configuration == true) %} {% set collapsed = '' %} {% set in_collapse = 'in' %} {% else %} {% set collapsed = 'collapsed' %} {% set in_collapse = '' %} {% endif %} + {% if data is not empty %}
{% for item in data %} @@ -24,7 +25,6 @@ {{ item.title }}{{ item.icon_session }} -