mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 01:32:59 +02:00
related to #1657 remove is_svg from code in gallery
This commit is contained in:
@@ -163,7 +163,6 @@ function get_sync_metadata($infos)
|
||||
$infos['filesize'] = floor($fs/1024);
|
||||
|
||||
$is_tiff = false;
|
||||
$is_svg = false;
|
||||
|
||||
if (isset($infos['representative_ext']))
|
||||
{
|
||||
@@ -185,8 +184,6 @@ function get_sync_metadata($infos)
|
||||
|
||||
if (in_array(mime_content_type($file), array('image/svg+xml', 'image/svg')))
|
||||
{
|
||||
$is_svg = true;
|
||||
|
||||
$xml = file_get_contents($file);
|
||||
|
||||
$xmlget = simplexml_load_string($xml);
|
||||
@@ -195,8 +192,6 @@ function get_sync_metadata($infos)
|
||||
$height = (int) $xmlattributes->height;
|
||||
$vb = (string) $xmlattributes->viewBox;
|
||||
|
||||
$infos['is_svg'] = $is_svg;
|
||||
|
||||
if (isset($width) and $width != "")
|
||||
{
|
||||
$infos['width'] = $width;
|
||||
|
||||
Reference in New Issue
Block a user