* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\User\Avatar
*/
-class DefaultAvatar implements IUserAvatar
+class DefaultAvatar implements IUserAvatar, ISafeFormatAvatar
{
/**
* image size
}
}
+ /**
+ * @inheritDoc
+ */
+ public function getSafeURL(?int $size = null): string
+ {
+ return WCF::getPath() . 'images/avatars/avatar-default.png';
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function getSafeImageTag(?int $size = null): string
+ {
+ return '<img src="' . StringUtil::encodeHTML($this->getSafeURL($size)) . '" width="' . $size . '" height="' . $size . '" alt="" class="userAvatarImage">';
+ }
+
/**
* @inheritDoc
*/