1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 07:07:51 +02:00

Allow fractional values for sizes [#4744]

git-svn-id: file:///svn/phpbb/trunk@6502 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-10-14 21:13:51 +00:00
parent 4d0ebfcdf2
commit dd5a27dc6f

View File

@ -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))