X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=c023602113d58a758260d8503e4119c1836f0b24;hb=504647c51aac2a34a4c3f11f33cc4fa6eecdb64f;hp=c675903824f56ad5509f9e36a062154b896657cb;hpb=dd9bac8f7903e9924525ad8db3e38650ff5ad1b6;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index c675903..c023602 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 "?>