From 94486a8cd97a4f3f894495f8a2d79d8229dd2e28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 25 Jul 2010 23:57:44 +0200 Subject: [PATCH] Fixes use of an uninitialised variable in icon compiler. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- plugins/compiler.icon.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 "?>