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