From: Stéphane Jacob Date: Sun, 25 Jul 2010 21:57:44 +0000 (+0200) Subject: Fixes use of an uninitialised variable in icon compiler. X-Git-Tag: core/1.1.1~45 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=94486a8cd97a4f3f894495f8a2d79d8229dd2e28;p=platal.git Fixes use of an uninitialised variable in icon compiler. Signed-off-by: Stéphane Jacob --- diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php index 672d29c..c023602 100644 --- a/plugins/compiler.icon.php +++ b/plugins/compiler.icon.php @@ -27,8 +27,8 @@ function smarty_compiler_icon($tag_attrs, &$compiler) 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); @@ -38,7 +38,10 @@ function smarty_compiler_icon($tag_attrs, &$compiler) $name = $globals->baseurl . '/' . $name; } - return "?>