From e16973f3e09a6f9624cc3f10a1f0a365763bb69f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Mon, 17 May 2004 16:29:30 +0000 Subject: [PATCH] Agrego la posibilidad de utilizar mecon_html_icon con cualquier imagen. --- lib/MECON/HTML/Icon.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/MECON/HTML/Icon.php b/lib/MECON/HTML/Icon.php index 26f20f6..2b5001d 100644 --- a/lib/MECON/HTML/Icon.php +++ b/lib/MECON/HTML/Icon.php @@ -79,9 +79,13 @@ class MECON_HTML_Icon extends MECON_HTML_Image { function MECON_HTML_Icon($nombre, $link = null, $alt = null, $attrs = array(), $align = 'right') { - switch ($nombre) { - default: - $src = "/MECON/images/general_$nombre"; + if (is_readable($nombre)) + { + $src = $nombre; + } + else + { + $src = "/MECON/images/general_$nombre"; } if (is_null($alt)) { $alt = '(' . strtoupper($nombre{0}) . ')'; -- 2.43.0