mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 01:06:15 +02:00
fixed svgImageFunction()
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
* Fixed `flex-options@` in blueprints duplicating items in array
|
||||
* Fixed wrong form issue with flex objects after cache clear
|
||||
* Fixed Flex object types not implementing `MediaInterface`
|
||||
* Fixed issue with `svgImageFunction()` that was causing broken output
|
||||
|
||||
# v1.7.18
|
||||
## 07/19/2021
|
||||
|
||||
@@ -1499,7 +1499,7 @@ class GravExtension extends AbstractExtension implements GlobalsInterface
|
||||
}
|
||||
|
||||
//Look for existing class
|
||||
$svg = preg_replace_callback('/^<svg[^>]*(class=\")([^"]*)(\")[^>]*>/', function($matches) use ($classes, &$matched) {
|
||||
$svg = preg_replace_callback('/^<svg[^>]*(class=\"([^"]*)\")[^>]*>/', function($matches) use ($classes, &$matched) {
|
||||
if (isset($matches[2])) {
|
||||
$new_classes = $matches[2] . $classes;
|
||||
$matched = true;
|
||||
|
||||
Reference in New Issue
Block a user