From c3c6a17a107a10e9a95e75bd541e4f4f3e84a0f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 17 Feb 2021 15:49:05 +0100 Subject: [PATCH] Add ISafeFormatAvatar --- .../user/avatar/ISafeFormatAvatar.class.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php diff --git a/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php b/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php new file mode 100644 index 0000000000..a909ad3f41 --- /dev/null +++ b/wcfsetup/install/files/lib/data/user/avatar/ISafeFormatAvatar.class.php @@ -0,0 +1,24 @@ + + * @package WoltLabSuite\Core\Data\User\Avatar + */ +interface ISafeFormatAvatar extends IUserAvatar +{ + /** + * @see IUserAvatar::getURL() + */ + public function getSafeURL(?int $size = null): string; + + /** + * @see IUserAvatar::getImageTag() + */ + public function getSafeImageTag(?int $size = null): string; +} -- 2.20.1