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