diff options
author | Senky <jakubsenko@gmail.com> | 2013-03-11 20:00:09 +0100 |
---|---|---|
committer | Senky <jakubsenko@gmail.com> | 2013-05-20 18:41:36 +0200 |
commit | 05639b85ad9d1f00a5fbdb7638375d773b77bf26 (patch) | |
tree | 41c8650e7d3fe4b5f0e891d20f984406dfec273b /phpBB | |
parent | 77ae733918d47b12f65a13fb58df03e2c8a3e621 (diff) | |
download | forums-05639b85ad9d1f00a5fbdb7638375d773b77bf26.tar forums-05639b85ad9d1f00a5fbdb7638375d773b77bf26.tar.gz forums-05639b85ad9d1f00a5fbdb7638375d773b77bf26.tar.bz2 forums-05639b85ad9d1f00a5fbdb7638375d773b77bf26.tar.xz forums-05639b85ad9d1f00a5fbdb7638375d773b77bf26.zip |
[ticket/11010] displaying min and max only if they are set
PHPBB3-11010
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_acp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index d3b1942180..8c0fde70e5 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -266,7 +266,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) $maxlength = strlen( (string) $max ); } - $tpl = '<input id="' . $key . '" type="number" maxlength="' . (( $maxlength != '' ) ? $maxlength : 255) . '" min="' . $min . '" max="' . $max . '" name="' . $name . '" value="' . $new[$config_key] . '" />'; + $tpl = '<input id="' . $key . '" type="number" maxlength="' . (( $maxlength != '' ) ? $maxlength : 255) . '"' . (( $min != '' ) ? ' min="' . $min . '"' : '') . (( $max != '' ) ? ' max="' . $max . '"' : '') . ' name="' . $name . '" value="' . $new[$config_key] . '" />'; break; case 'dimension': @@ -278,7 +278,7 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars) $maxlength = strlen( (string) $max ); } - $tpl = '<input id="' . $key . '" type="number" maxlength="' . (($maxlength != '') ? $maxlength : 255) . '" min="' . $min . '" max="' . $max . '" name="config[' . $config_key . '_width]" value="' . $new[$config_key . '_width'] . '" /> x <input type="number" maxlength="' . (($maxlength != '') ? $maxlength : 255) . '" min="' . $min . '" max="' . $max . '" name="config[' . $config_key . '_height]" value="' . $new[$config_key . '_height'] . '" />'; + $tpl = '<input id="' . $key . '" type="number" maxlength="' . (($maxlength != '') ? $maxlength : 255) . '"' . (( $min != '' ) ? ' min="' . $min . '"' : '') . (( $max != '' ) ? ' max="' . $max . '"' : '') . ' name="config[' . $config_key . '_width]" value="' . $new[$config_key . '_width'] . '" /> x <input type="number" maxlength="' . (($maxlength != '') ? $maxlength : 255) . '"' . (( $min != '' ) ? ' min="' . $min . '"' : '') . (( $max != '' ) ? ' max="' . $max . '"' : '') . ' name="config[' . $config_key . '_height]" value="' . $new[$config_key . '_height'] . '" />'; break; case 'textarea': |