From 6fab3ed243d3e2688916dcb65141e37bef1cc4c3 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 15 Sep 2011 21:21:14 -0400 Subject: Fixes #3178 updated elgg_view_icon() to take an optional class --- engine/lib/views.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engine/lib/views.php') diff --git a/engine/lib/views.php b/engine/lib/views.php index 0646851f0..2f1661e83 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -1308,15 +1308,16 @@ function elgg_view_list_item($item, array $vars = array()) { * Shorthand for * * @param string $name The specific icon to display - * @param bool $float Whether to float the icon + * @param string $class Additional class: float, float-alt, or custom class * * @return string The html for displaying an icon */ -function elgg_view_icon($name, $float = false) { - if ($float) { - $float = 'float'; +function elgg_view_icon($name, $class = '') { + // @todo deprecate boolean in Elgg 1.9 + if (is_bool($class) && $class === true) { + $class = 'float'; } - return ""; + return ""; } /** -- cgit v1.2.3