Tweak generated html tag.
authorJan Schneider <jan@horde.org>
Wed, 3 Feb 2010 01:11:00 +0000 (02:11 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Feb 2010 01:11:00 +0000 (02:11 +0100)
framework/Ui/lib/Horde/Ui/TagCloud.php

index 99b0935..ea8ca58 100644 (file)
@@ -216,12 +216,12 @@ class Horde_Ui_TagCloud
      */
     protected function _createHTMLTag($tag, $type, $fontsize)
     {
-        return sprintf("<a style=\"font-size: %d%s\" class=\"%s\" href=\"%s\" %s >%s</a>\n",
+        return sprintf('<a style="font-size:%d%s" class="%s" href="%s"%s>%s</a>' . "\n",
                        $fontsize,
                        $this->size_suffix,
                        $type,
                        $tag['url'],
-                       (empty($tag['onclick']) ? '' : 'onClick="' . $tag['onclick'] . '"'),
+                       (empty($tag['onclick']) ? '' : ' onclick="' . $tag['onclick'] . '"'),
                        htmlspecialchars($tag['name']));
     }