mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
thumbUrl() fix.
This commit is contained in:
@@ -2416,7 +2416,7 @@ class e_parse extends e_parser
|
|||||||
|
|
||||||
$thurl .= 'aw='.intval($options['w']).'&ah='.intval($options['h']);
|
$thurl .= 'aw='.intval($options['w']).'&ah='.intval($options['h']);
|
||||||
|
|
||||||
if(is_string($options['crop']))
|
if(!is_numeric($options['crop']))
|
||||||
{
|
{
|
||||||
$thurl .= '&c='.$options['crop'];
|
$thurl .= '&c='.$options['crop'];
|
||||||
$options['nosef'] = true;
|
$options['nosef'] = true;
|
||||||
@@ -2605,7 +2605,7 @@ class e_parse extends e_parser
|
|||||||
elseif(!empty($options['crop']))
|
elseif(!empty($options['crop']))
|
||||||
{
|
{
|
||||||
|
|
||||||
if(is_string($options['crop']))
|
if(!is_numeric($options['crop']))
|
||||||
{
|
{
|
||||||
$sefUrl .= strtolower($options['crop']).intval($options['w']) .'x'.strtolower($options['crop']). intval($options['h']);
|
$sefUrl .= strtolower($options['crop']).intval($options['w']) .'x'.strtolower($options['crop']). intval($options['h']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user