X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=4487e59faba67bdaa2ad81b297d2648536b03f75;hb=0d78a96bb5914bcbe0dd08a6a237134daebbaffe;hp=c675903824f56ad5509f9e36a062154b896657cb;hpb=ebd515f95f03f8a87f9b846d65e179b39a535222;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index c675903..4487e59 100644 --- a/plugins/compiler.icon.php +++ b/plugins/compiler.icon.php @@ -1,6 +1,6 @@ _parse_attrs($tag_attrs)); $alt = 'alt=""'; - + if (isset($title)) { $title = pl_entities(trim($title, '\'"'), ENT_QUOTES); $alt = 'alt="'.$title.'"'; @@ -34,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; }