diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-14 21:13:51 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-14 21:13:51 +0000 |
commit | dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8 (patch) | |
tree | c96d897eec41eed68339a8fe69e142434cd57ac3 /phpBB/includes | |
parent | 4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb (diff) | |
download | forums-dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8.tar forums-dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8.tar.gz forums-dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8.tar.bz2 forums-dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8.tar.xz forums-dd5a27dc6f02cd6db1e2ff43cb2e8b9ab8098ec8.zip |
Allow fractional values for sizes [#4744]
git-svn-id: file:///svn/phpbb/trunk@6502 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 50aec6fecb..1ba433a777 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -1009,7 +1009,7 @@ pagination_sep = \'{PAGINATION_SEP}\' // Used in an sprintf statement to generate appropriate output for rawcss mode $map_elements = array( 'colors' => '%s', - 'sizes' => '%d', + 'sizes' => '%1.1f', 'images' => 'url(\'./%s\')', 'repeat' => '%s', 'other' => '%s', @@ -1185,11 +1185,11 @@ pagination_sep = \'{PAGINATION_SEP}\' $value = ''; $unit = ''; - // retrieve and validate date for this setting + // retrieve and validate data for this setting switch ($type) { case 'sizes': - $value = request_var($var, 0); + $value = request_var($var, 0.0); $unit = request_var($var . '_unit', ''); if ((request_var($var, '') === '') || !in_array($unit, $units)) |