X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fcompiler.icon.php;h=4487e59faba67bdaa2ad81b297d2648536b03f75;hb=e8ddc3f28701273de2b5c0f822146ab2a39dea91;hp=330ea84edf2cc1e6ea239c9a114160d9c6dde951;hpb=5ddeb07cc787dd1dc3630a31f1528f5cc7c4d9b9;p=platal.git diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index 330ea84..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 = '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 "?>