From f841a0a1b85771b48b041ebf6cd732e58ff8e0a9 Mon Sep 17 00:00:00 2001 From: 3D-I Date: Fri, 22 Oct 2021 02:34:35 +0200 Subject: [PATCH] [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons Attempt to read the SVG dimensions PHPBB3-16899 --- phpBB/includes/acp/acp_icons.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/acp/acp_icons.php b/phpBB/includes/acp/acp_icons.php index 7f10c73c37..4758e89a93 100644 --- a/phpBB/includes/acp/acp_icons.php +++ b/phpBB/includes/acp/acp_icons.php @@ -114,12 +114,12 @@ class acp_icons } } else - // getimagesize can't read the dimensions of the SVG files - // https://bugs.php.net/bug.php?id=71517 { + // getimagesize can't read the dimensions of the SVG files + // https://bugs.php.net/bug.php?id=71517 $xml_get = simplexml_load_file($phpbb_root_path . $img_path . '/' . $path . $img); - $svg_width = intval($xml_get['width']); + $svg_width = intval($xml_get['width']); $svg_height = intval($xml_get['height']); }