Fix img helper not setting icon class
This commit is contained in:
parent
96674cd895
commit
96466241c2
|
@ -86,11 +86,10 @@ $this->addHelperFunction('icon', function ($img, $title = null, array $propertie
|
||||||
} else {
|
} else {
|
||||||
$properties['class'] = 'icon';
|
$properties['class'] = 'icon';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($img, '/') === false) {
|
if (strpos($img, '/') === false) {
|
||||||
return $view->img('img/icons/' . $img, $properties);
|
return $view->img('img/icons/' . $img, null, $properties);
|
||||||
} else {
|
} else {
|
||||||
return $view->img($img, $properties);
|
return $view->img($img, null, $properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue