X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=58bbec48316419e11efaaea43b1e10e9d7b1ed86;hb=8623e0efe391046d4ce8b4e001fad1576c7c997a;hp=ea7f8c76c2d694610d9b072b7d09141c62802f40;hpb=a7f778a593a0a7e168a7112ec28cb84d032adaf3;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index ea7f8c7..58bbec4 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.'"'; - $title = 'title="'. $title.'" '; + $alt = 'alt="' . $title . '"'; + $title = 'title="' . $title . '" '; } $name = pl_entities(trim($name, '\'"'), ENT_QUOTES); $name = "images/icons/$name.gif"; - if ($full) { + if (isset($full) && $full) { global $globals; $name = $globals->baseurl . '/' . $name; } - return "?>