mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #1657 SVG support (both gallery and admin sides)
This commit is contained in:
committed by
plegall
parent
8d1e97c8b7
commit
77b156df18
@@ -213,7 +213,8 @@ SELECT
|
||||
{
|
||||
$legend.= ' ('.$row['file'].')';
|
||||
}
|
||||
|
||||
$extTab = explode('.',$row['path']);
|
||||
|
||||
$template->append(
|
||||
'elements', array_merge($row,
|
||||
array(
|
||||
@@ -228,6 +229,7 @@ SELECT
|
||||
'DESCRIPTION' => htmlspecialchars(isset($row['comment']) ? $row['comment'] : ""),
|
||||
'DATE_CREATION' => $row['date_creation'],
|
||||
'TAGS' => $tag_selection,
|
||||
'is_svg' => (strtoupper(end($extTab)) == 'SVG'),
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user