X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=289d524a32abaf4c59f8e1670ed6c692b83cb563;hb=refs%2Fheads%2Fcore%2Fmaster;hp=1dda8aa3082b79ec6fd1de98d2ab788b0d8d5026;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index 1dda8aa..289d524 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 = 'title="'.htmlentities(trim($title, '\'"'), ENT_QUOTES).'" '; + $title = pl_entities(trim($title, '\'"'), ENT_QUOTES); + $alt = 'alt="' . $title . '"'; + $title = 'title="' . $title . '" '; } - $name = htmlentities(trim($name, '\'"'), ENT_QUOTES); + $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 "?>