1
0
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:
Cameron
2016-04-12 19:56:29 -07:00
parent 21017e78f1
commit 4a40104073
3 changed files with 48 additions and 5 deletions

View File

@@ -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}
{