mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
adminUI: Fixes #1686 - 'max' option added to writeParms when type=images. Default value is 5. thumbUrl() empty image prevention.
This commit is contained in:
@@ -2385,7 +2385,7 @@ class e_parse extends e_parser
|
|||||||
|
|
||||||
// e107::getDebug()->log("Thumb: ".basename($url). print_a($options,true), E107_DBG_BASIC);
|
// e107::getDebug()->log("Thumb: ".basename($url). print_a($options,true), E107_DBG_BASIC);
|
||||||
|
|
||||||
if(!empty($options))
|
if(!empty($options) && (isset($options['w']) || isset($options['aw']) || isset($options['h'])))
|
||||||
{
|
{
|
||||||
$options['w'] = varset($options['w']);
|
$options['w'] = varset($options['w']);
|
||||||
$options['h'] = varset($options['h']);
|
$options['h'] = varset($options['h']);
|
||||||
|
@@ -4948,8 +4948,9 @@ class e_form
|
|||||||
// return print_a($value, true);
|
// return print_a($value, true);
|
||||||
$ret = "";
|
$ret = "";
|
||||||
$label = varset($parms['label'], 'LAN_EDIT');
|
$label = varset($parms['label'], 'LAN_EDIT');
|
||||||
|
$max = varset($parms['max'],5);
|
||||||
|
|
||||||
for ($i=0; $i < 5; $i++)
|
for ($i=0; $i < $max; $i++)
|
||||||
{
|
{
|
||||||
$k = $key.'['.$i.'][path]';
|
$k = $key.'['.$i.'][path]';
|
||||||
$ival = $value[$i]['path'];
|
$ival = $value[$i]['path'];
|
||||||
|
Reference in New Issue
Block a user