Commit 2c1bd610 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2731 fixing template in 1.0.8

parent 30ea4037
......@@ -633,13 +633,15 @@ class plugin
static function tpl_parse_attrs($attrs)
{
foreach ($attrs as &$attr) {
foreach ($attr as $key => &$string) {
if (!is_numeric($key)) {
continue;
if (is_array($attr)) {
foreach ($attr as $key => &$string) {
if (!is_numeric($key)) {
continue;
}
$string = self::tpl_parse_string($string, $attrs);
}
$string = self::tpl_parse_string($string, $attrs);
unset($string);
}
unset($string);
}
unset($attr);
return $attrs;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment