1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

Merge pull request #6671 from iMattPro/ticket/17364

[ticket/17364] Correctly handle styles list in ACP Forums
This commit is contained in:
Marc Alexander
2024-07-07 08:25:30 +02:00
committed by GitHub
2 changed files with 9 additions and 2 deletions

View File

@@ -181,7 +181,14 @@
<!-- ENDIF -->
<dl>
<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>
<!-- EVENT acp_forums_main_settings_append -->
</fieldset>

View File

@@ -393,7 +393,7 @@ class acp_board
'title' => 'ACP_AUTH_SETTINGS',
'vars' => array(
'legend1' => 'ACP_AUTH_SETTINGS',
'auth_method' => array('lang' => 'AUTH_METHOD', 'validate' => 'string', 'type' => 'select:1:toggable', 'method' => 'select_auth_method', 'explain' => false),
'auth_method' => array('lang' => 'AUTH_METHOD', 'validate' => 'string', 'type' => 'select:1:toggleable', 'method' => 'select_auth_method', 'explain' => false),
)
);
break;