aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-06-05 09:52:17 +0200
committerNils Adermann <naderman@naderman.de>2011-06-05 09:52:17 +0200
commit26e052bb26a683bff17d86ae2beecc66ffcd93cf (patch)
tree29b98ad640f3c4e2446c9b4169aca94a68347d82 /phpBB/adm
parent8155bc5a9dbbe5ad6a9ceb722baf4587db8f3689 (diff)
downloadforums-26e052bb26a683bff17d86ae2beecc66ffcd93cf.tar
forums-26e052bb26a683bff17d86ae2beecc66ffcd93cf.tar.gz
forums-26e052bb26a683bff17d86ae2beecc66ffcd93cf.tar.bz2
forums-26e052bb26a683bff17d86ae2beecc66ffcd93cf.tar.xz
forums-26e052bb26a683bff17d86ae2beecc66ffcd93cf.zip
[ticket/10067] Add separator to h_radio to place options on individual lines
The previous mechanism for account activation resulted in two h_radio calls with identical id attributes for two elements. PHPBB3/10067
Diffstat (limited to 'phpBB/adm')
-rw-r--r--phpBB/adm/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php
index dd8f4c279d..74e51a8696 100644
--- a/phpBB/adm/index.php
+++ b/phpBB/adm/index.php
@@ -237,7 +237,7 @@ function build_select($option_ary, $option_default = false)
/**
* Build radio fields in acp pages
*/
-function h_radio($name, &$input_ary, $input_default = false, $id = false, $key = false)
+function h_radio($name, $input_ary, $input_default = false, $id = false, $key = false, $separator = '')
{
global $user;
@@ -246,7 +246,7 @@ function h_radio($name, &$input_ary, $input_default = false, $id = false, $key =
foreach ($input_ary as $value => $title)
{
$selected = ($input_default !== false && $value == $input_default) ? ' checked="checked"' : '';
- $html .= '<label><input type="radio" name="' . $name . '"' . (($id && !$id_assigned) ? ' id="' . $id . '"' : '') . ' value="' . $value . '"' . $selected . (($key) ? ' accesskey="' . $key . '"' : '') . ' class="radio" /> ' . $user->lang[$title] . '</label>';
+ $html .= '<label><input type="radio" name="' . $name . '"' . (($id && !$id_assigned) ? ' id="' . $id . '"' : '') . ' value="' . $value . '"' . $selected . (($key) ? ' accesskey="' . $key . '"' : '') . ' class="radio" /> ' . $user->lang[$title] . '</label>' . $separator;
$id_assigned = true;
}