diff --git a/library/Icinga/Web/View/helpers/url.php b/library/Icinga/Web/View/helpers/url.php index 918599503..2144b13f9 100644 --- a/library/Icinga/Web/View/helpers/url.php +++ b/library/Icinga/Web/View/helpers/url.php @@ -86,11 +86,10 @@ $this->addHelperFunction('icon', function ($img, $title = null, array $propertie } else { $properties['class'] = 'icon'; } - if (strpos($img, '/') === false) { - return $view->img('img/icons/' . $img, $properties); + return $view->img('img/icons/' . $img, null, $properties); } else { - return $view->img($img, $properties); + return $view->img($img, null, $properties); } }