mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
Attempt to read the SVG dimensions PHPBB3-16899
This commit is contained in:
parent
7472d300b6
commit
f841a0a1b8
1 changed files with 3 additions and 3 deletions
|
@ -114,9 +114,9 @@ class acp_icons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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);
|
$xml_get = simplexml_load_file($phpbb_root_path . $img_path . '/' . $path . $img);
|
||||||
|
|
||||||
$svg_width = intval($xml_get['width']);
|
$svg_width = intval($xml_get['width']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue