From da7e6ee7748f6f5ff91a9268c42efdd339961acc Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 1 Jun 2020 13:05:50 -0700 Subject: [PATCH] toAvatar now accepts the 'mode' option with 'full' to use the full URL. --- e107_handlers/e_parse_class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 4344b6311..06192eb32 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4375,6 +4375,7 @@ class e_parser * @param bool $options['hd'] - double the resolution of the image. Useful for retina displays. * @param string $options['type'] - when set to 'url' returns the URL value instead of the tag. * @param string $options['style'] - sets the style attribute. + * @param string $options['mode'] - 'full' url mode. * @return string tag of avatar. */ public function toAvatar($userData=null, $options=array()) @@ -4387,6 +4388,11 @@ class e_parser $linkEnd = ''; $full = !empty($options['base64']) ? true : false; + if(!empty($options['mode']) && $options['mode'] === 'full') + { + $full = true; + } + if(!empty($options['h'])) { $height = intval($options['h']);