mirror of
https://github.com/e107inc/e107.git
synced 2025-08-15 11:04:18 +02:00
PHP7 fix for message_handler. Plugin Builder now includes specific keyword drop-down menu for use on e107.org
This commit is contained in:
@@ -2345,6 +2345,8 @@ class e_parse extends e_parser
|
||||
|
||||
$thurl = 'src='.urlencode($url).'&';
|
||||
|
||||
// e107::getDebug()->log("Thumb: ".basename($url). print_a($options,true), E107_DBG_BASIC);
|
||||
|
||||
if(isset($options['crop']))
|
||||
{
|
||||
$this->thumbCrop = intval($options['crop']);
|
||||
@@ -2355,7 +2357,7 @@ class e_parse extends e_parser
|
||||
$this->thumbEncode($options['x']);
|
||||
}
|
||||
|
||||
if(vartrue($options['aw']) || vartrue($options['ah']) || $this->thumbCrop == 1)
|
||||
if(vartrue($options['aw']) || vartrue($options['ah']) || ($this->thumbCrop == 1))
|
||||
{
|
||||
if($this->thumbCrop == 1 && !vartrue($options['aw']) && !vartrue($options['ah'])) // Allow templates to determine dimensions. See {SETIMAGE}
|
||||
{
|
||||
|
Reference in New Issue
Block a user