diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-02-03 22:03:31 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-02-03 22:03:31 +0100 |
commit | b39b3da5af89d9687ff5e985244695131d36c753 (patch) | |
tree | e723d7d74e84fc9b5cfb8dbe70fbe4bebbafcba2 | |
parent | c9541e07952eec73099701082bc1317ef2bd4c56 (diff) | |
download | forums-b39b3da5af89d9687ff5e985244695131d36c753.tar forums-b39b3da5af89d9687ff5e985244695131d36c753.tar.gz forums-b39b3da5af89d9687ff5e985244695131d36c753.tar.bz2 forums-b39b3da5af89d9687ff5e985244695131d36c753.tar.xz forums-b39b3da5af89d9687ff5e985244695131d36c753.zip |
[ticket/14272] Allow input of floats for filesize
This might be needed while switching the default input from KiB to MiB or
similar changes to settings.
PHPBB3-14272
-rw-r--r-- | phpBB/adm/style/acp_attachments.html | 2 | ||||
-rw-r--r-- | phpBB/includes/acp/acp_attachments.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/adm/style/acp_attachments.html b/phpBB/adm/style/acp_attachments.html index d048191864..e1f7f140c9 100644 --- a/phpBB/adm/style/acp_attachments.html +++ b/phpBB/adm/style/acp_attachments.html @@ -196,7 +196,7 @@ </dl> <dl> <dt><label for="extgroup_filesize">{L_MAX_EXTGROUP_FILESIZE}{L_COLON}</label></dt> - <dd><input type="number" id="extgroup_filesize" min="0" max="999999999999999" name="max_filesize" value="{EXTGROUP_FILESIZE}" /> <select name="size_select">{S_EXT_GROUP_SIZE_OPTIONS}</select></dd> + <dd><input type="number" id="extgroup_filesize" min="0" max="999999999999999" step="any" name="max_filesize" value="{EXTGROUP_FILESIZE}" /> <select name="size_select">{S_EXT_GROUP_SIZE_OPTIONS}</select></dd> </dl> <dl> <dt><label for="assigned_extensions">{L_ASSIGNED_EXTENSIONS}{L_COLON}</label></dt> diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php index 7e348aa45b..8e8ace8337 100644 --- a/phpBB/includes/acp/acp_attachments.php +++ b/phpBB/includes/acp/acp_attachments.php @@ -1736,7 +1736,7 @@ class acp_attachments $value = $filesize['value']; // size and maxlength must not be specified for input of type number - return '<input type="number" id="' . $key . '" min="0" max="999999999999999" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>'; + return '<input type="number" id="' . $key . '" min="0" max="999999999999999" step="any" name="config[' . $key . ']" value="' . $value . '" /> <select name="' . $key . '">' . size_select_options($size_var) . '</select>'; } /** |