diff options
author | Derek Jones <derek.jones@ellislab.com> | 2010-03-05 17:23:39 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2010-03-05 17:23:39 +0100 |
commit | 48822fa77cd02a7974a56cf92d989aefbd98e9af (patch) | |
tree | 098976664fbb153252c3a848692fb5eb949289fe /system/helpers | |
parent | 11b1e51f8df7a1e47d002a14a76748f6f629f988 (diff) |
updating attributes to lowercase and added CDATA block around js
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/smiley_helper.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/system/helpers/smiley_helper.php b/system/helpers/smiley_helper.php index 931f1308d..775cc1b99 100644 --- a/system/helpers/smiley_helper.php +++ b/system/helpers/smiley_helper.php @@ -68,7 +68,6 @@ if ( ! function_exists('smiley_js')) $m = '{'.implode(',', $m).'}'; $r .= <<<EOF - var smiley_map = {$m}; function insert_smiley(smiley, field_id) { @@ -109,7 +108,7 @@ EOF; } } - return '<script type="text/javascript" charset="utf-8">'.$r.'</script>'; + return '<script type="text/javascript" charset="utf-8">/*<![CDATA[ */'.$r.'// ]]></script>'; } } @@ -159,7 +158,7 @@ if ( ! function_exists('get_clickable_smileys')) continue; } - $link[] = "<a href=\"javascript:void(0);\" onClick=\"insert_smiley('".$key."', '".$alias."')\"><img src=\"".$image_url.$smileys[$key][0]."\" width=\"".$smileys[$key][1]."\" height=\"".$smileys[$key][2]."\" alt=\"".$smileys[$key][3]."\" style=\"border:0;\" /></a>"; + $link[] = "<a href=\"javascript:void(0);\" onclick=\"insert_smiley('".$key."', '".$alias."')\"><img src=\"".$image_url.$smileys[$key][0]."\" width=\"".$smileys[$key][1]."\" height=\"".$smileys[$key][2]."\" alt=\"".$smileys[$key][3]."\" style=\"border:0;\" /></a>"; $used[$smileys[$key][0]] = TRUE; } |