X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=4487e59faba67bdaa2ad81b297d2648536b03f75;hb=0d78a96bb5914bcbe0dd08a6a237134daebbaffe;hp=ea7f8c76c2d694610d9b072b7d09141c62802f40;hpb=a7f778a593a0a7e168a7112ec28cb84d032adaf3;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index ea7f8c7..4487e59 100644 --- a/plugins/compiler.icon.php +++ b/plugins/compiler.icon.php @@ -24,7 +24,7 @@ function smarty_compiler_icon($tag_attrs, &$compiler) extract($compiler->_parse_attrs($tag_attrs)); $alt = 'alt=""'; - + if (isset($title)) { $title = pl_entities(trim($title, '\'"'), ENT_QUOTES); $alt = 'alt="'.$title.'"'; @@ -33,7 +33,7 @@ function smarty_compiler_icon($tag_attrs, &$compiler) $name = pl_entities(trim($name, '\'"'), ENT_QUOTES); $name = "images/icons/$name.gif"; - if ($full) { + if (isset($full) && $full) { global $globals; $name = $globals->baseurl . '/' . $name; }