X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Fcompiler.icon.php;h=289d524a32abaf4c59f8e1670ed6c692b83cb563;hb=refs%2Fheads%2Fcore%2Fmaster;hp=c675903824f56ad5509f9e36a062154b896657cb;hpb=08fa70684fd1332178cddb6b318151335fb4506c;p=platal.git
diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php
index c675903..289d524 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\")