aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_acp.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-11-06 10:25:14 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-11-06 10:25:31 +0100
commitbe5a40f6a910f7fd28c73155fb507e5ce16d11a6 (patch)
treedef6137d9632549a695b478431866eae42524c42 /phpBB/includes/functions_acp.php
parentaca6e64669079abc385f3094d8b6c186d9b46082 (diff)
downloadforums-be5a40f6a910f7fd28c73155fb507e5ce16d11a6.tar
forums-be5a40f6a910f7fd28c73155fb507e5ce16d11a6.tar.gz
forums-be5a40f6a910f7fd28c73155fb507e5ce16d11a6.tar.bz2
forums-be5a40f6a910f7fd28c73155fb507e5ce16d11a6.tar.xz
forums-be5a40f6a910f7fd28c73155fb507e5ce16d11a6.zip
[ticket/14272] Assign min/max for all allowed types
PHPBB3-14272
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r--phpBB/includes/functions_acp.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index bd12c3dd5c..8d5050d1bd 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -265,17 +265,17 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
break;
case 'color':
- case 'date':
- case 'time':
case 'datetime':
case 'datetime-local':
case 'month':
- case 'range':
case 'week':
$tpl = '<input id="' . $key . '" type="' . $tpl_type[0] . '" name="' . $name . '" value="' . $new[$config_key] . '"' . (($tpl_type[0] === 'password') ? ' autocomplete="off"' : '') . ' />';
break;
+ case 'date':
+ case 'time':
case 'number':
+ case 'range':
$max = '';
$min = ( isset($tpl_type[1]) ) ? (int) $tpl_type[1] : false;
if ( isset($tpl_type[2]) )
@@ -283,7 +283,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
$max = (int) $tpl_type[2];
}
- $tpl = '<input id="' . $key . '" type="number"' . (( $min != '' ) ? ' min="' . $min . '"' : '') . (( $max != '' ) ? ' max="' . $max . '"' : '') . ' name="' . $name . '" value="' . $new[$config_key] . '" />';
+ $tpl = '<input id="' . $key . '" type="' . $tpl_type[0] . '"' . (( $min != '' ) ? ' min="' . $min . '"' : '') . (( $max != '' ) ? ' max="' . $max . '"' : '') . ' name="' . $name . '" value="' . $new[$config_key] . '" />';
break;
case 'dimension':