Fix img helper not setting icon class

This commit is contained in:
Eric Lippmann 2015-11-16 15:27:59 +01:00
parent 96674cd895
commit 96466241c2
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}