* Added width/height properties for default avatars
Under certain circumstances, it is possible, that a browser strips the style tag on SVG images. This leads to a display of very tiny avatar images as shown below:
Since `width` and `height` are valid properties and respected by every browser, it's not the worst idea to include them.
* Removed redundant style attribute
public function getImageTag($size = null) {
if ($size === null) $size = $this->size;
- return '<img src="'.StringUtil::encodeHTML($this->getURL($size)).'" style="width: '.$size.'px; height: '.$size.'px" alt="" class="userAvatarImage">';
+ return '<img src="'.StringUtil::encodeHTML($this->getURL($size)).'" width="'.$size.'" height="'.$size.'" alt="" class="userAvatarImage">';
}
/**