X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=58bbec48316419e11efaaea43b1e10e9d7b1ed86;hb=8623e0efe391046d4ce8b4e001fad1576c7c997a;hp=acbaa03fd073a25513482ba04b25fe9ed0b693fa;hpb=5ef09bc4748e7f0ec4dc8be3b94672b6a51fffc3;p=platal.git
diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php
index acbaa03..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 = '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 "?>![]($name)
![](\"$name\")