aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-06-06 10:58:05 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-06-06 10:58:05 +0200
commit759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1 (patch)
treef1776b048de037159b693927e3393cb9b8d51c03 /phpBB/includes
parent893d0ae96f4fba26a10b909d39abe952601bca41 (diff)
parent26e052bb26a683bff17d86ae2beecc66ffcd93cf (diff)
downloadforums-759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1.tar
forums-759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1.tar.gz
forums-759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1.tar.bz2
forums-759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1.tar.xz
forums-759f8d5c2cecad63dfcdf29af28dc5e1c6198ab1.zip
Merge remote-tracking branch 'naderman/ticket/10067' into develop-olympus
* naderman/ticket/10067: [ticket/10067] Add separator to h_radio to place options on individual lines
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_board.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 8f7d08cc8f..d38c4d58ba 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -769,18 +769,19 @@ class acp_board
{
global $user, $config;
- $radio_ary = array(USER_ACTIVATION_DISABLE => 'ACC_DISABLE', USER_ACTIVATION_NONE => 'ACC_NONE');
- $radio_text = h_radio('config[require_activation]', $radio_ary, $value, $key);
+ $radio_ary = array(
+ USER_ACTIVATION_DISABLE => 'ACC_DISABLE',
+ USER_ACTIVATION_NONE => 'ACC_NONE',
+ );
+
if ($config['email_enable'])
{
- $radio_ary = array(USER_ACTIVATION_SELF => 'ACC_USER', USER_ACTIVATION_ADMIN => 'ACC_ADMIN');
- // With longer labels the four options no longer fit
- // onto a single line. Separate them onto two lines.
- // This also requires two h_radio calls to generate HTML.
- $radio_text .= '<br /><br />';
- $radio_text .= h_radio('config[require_activation]', $radio_ary, $value, $key);
+ $radio_ary[USER_ACTIVATION_SELF] = 'ACC_USER';
+ $radio_ary[USER_ACTIVATION_ADMIN] = 'ACC_ADMIN';
}
+ $radio_text = h_radio('config[require_activation]', $radio_ary, $value, 'require_activation', $key, '<br />');
+
return $radio_text;
}