1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 03:10:50 +02:00

toAvatar now accepts the 'mode' option with 'full' to use the full URL.

This commit is contained in:
Cameron
2020-06-01 13:05:50 -07:00
parent 4e8c3e375c
commit da7e6ee774

View File

@@ -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 <img> 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']);