X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/482cb89c4c61639bb4fccd58d9da7f6da10baf5d..06cd54ffd3f4a2641a10db316fb08d42c3b8b5ea:/lib/MECON/HTML/Icon.php?ds=sidebyside 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}) . ')';