Fix value of auto in width dropdown. Allow a 0 value for scale.
parent
8ef70f9080
commit
010b230804
|
@ -40,7 +40,7 @@ if ( empty($_REQUEST['mode']) ) {
|
|||
}
|
||||
|
||||
$widths = array(
|
||||
'' => translate('auto'),
|
||||
'auto' => translate('auto'),
|
||||
'100%' => '100%',
|
||||
'160px' => '160px',
|
||||
'320px' => '320px',
|
||||
|
@ -62,13 +62,11 @@ session_start();
|
|||
|
||||
if ( isset($_REQUEST['scale']) ) {
|
||||
$options['scale'] = validInt($_REQUEST['scale']);
|
||||
ZM\Logger::Debug('Setting scale from request to '.$options['scale']);
|
||||
} else if ( isset($_COOKIE['zmCycleScale']) ) {
|
||||
$options['scale'] = $_COOKIE['zmCycleScale'];
|
||||
ZM\Logger::Debug('Setting scale from cookie to '.$options['scale']);
|
||||
}
|
||||
|
||||
if ( !(isset($options['scale']) and $options['scale']) )
|
||||
if ( !isset($options['scale']) )
|
||||
$options['scale'] = 100;
|
||||
|
||||
if ( isset($_COOKIE['zmCycleWidth']) and $_COOKIE['zmCycleWidth'] ) {
|
||||
|
|
Loading…
Reference in New Issue