[ticket/17364] Correctly handle styles list in ACP Forums

PHPBB-17364

Signed-off-by: Matt Friedman <maf675@gmail.com>
This commit is contained in:
Matt Friedman 2024-07-05 13:52:13 -07:00
parent b2b61390c4
commit e69a86c49e
No known key found for this signature in database

View file

@ -181,7 +181,14 @@
<!-- ENDIF --> <!-- ENDIF -->
<dl> <dl>
<dt><label for="forum_style">{L_FORUM_STYLE}{L_COLON}</label></dt> <dt><label for="forum_style">{L_FORUM_STYLE}{L_COLON}</label></dt>
<dd><select id="forum_style" name="forum_style"><option value="0">{L_DEFAULT_STYLE}</option>{S_STYLES_OPTIONS}</select></dd> <dd>
<select id="forum_style" name="forum_style">
<option value="0">{{ lang('DEFAULT_STYLE') }}</option>
{% for style in S_STYLES_OPTIONS %}
<option value="{{ style.value }}"{% if style.selected %} selected="selected"{% endif %}>{{ style.label }}</option>
{% endfor %}
</select>
</dd>
</dl> </dl>
<!-- EVENT acp_forums_main_settings_append --> <!-- EVENT acp_forums_main_settings_append -->
</fieldset> </fieldset>