X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=58bbec48316419e11efaaea43b1e10e9d7b1ed86;hb=830f5ae5a86825dee7272bbf0ceb9524d4d34056;hp=d46490062ae7a6ff3a13582c20a2c66d1dbdb631;hpb=a33955e4d6c4e9eada507ddd29cfb45e42775804;p=platal.git
diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php
index d464900..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\")