From: cash Date: Fri, 16 Sep 2011 01:21:14 +0000 (-0400) Subject: Fixes #3178 updated elgg_view_icon() to take an optional class X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6fab3ed243d3e2688916dcb65141e37bef1cc4c3;p=lorea%2Felgg.git Fixes #3178 updated elgg_view_icon() to take an optional class --- 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 ""; } /**