aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm
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/adm
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/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;
}