X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fcompiler.icon.php;h=bdf732576d9a138e2bee1d8321705940e10a4fd2;hb=999c36caa0af1a215504c8043f906d6ee8f3c448;hp=d46490062ae7a6ff3a13582c20a2c66d1dbdb631;hpb=a33955e4d6c4e9eada507ddd29cfb45e42775804;p=platal.git
diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php
index d464900..bdf7325 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 "?>