From 96466241c2c53781d487bf8dec1810f14323c1d4 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 16 Nov 2015 15:27:59 +0100 Subject: [PATCH] Fix img helper not setting icon class --- library/Icinga/Web/View/helpers/url.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); } }