From 62db8c3969f783897ff2de1bf3250057c37eb422 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 31 Dec 2023 09:55:27 +0100 Subject: fix php errors and deprecation warnings --- Zotlabs/Photo/PhotoGd.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Photo/PhotoGd.php') diff --git a/Zotlabs/Photo/PhotoGd.php b/Zotlabs/Photo/PhotoGd.php index c54fa6a7d..6854be0ab 100644 --- a/Zotlabs/Photo/PhotoGd.php +++ b/Zotlabs/Photo/PhotoGd.php @@ -17,11 +17,11 @@ class PhotoGd extends PhotoDriver { $t = []; $t['image/jpeg'] = 'jpg'; - if(imagetypes() & IMG_PNG) + if(\imagetypes() & IMG_PNG) $t['image/png'] = 'png'; - if(imagetypes() & IMG_GIF) + if(\imagetypes() & IMG_GIF) $t['image/gif'] = 'gif'; - if(imagetypes() & IMG_WEBP) + if(\imagetypes() & IMG_WEBP) $t['image/webp'] = 'webp'; return $t; -- cgit v1.2.3