diff options
Diffstat (limited to 'inc/template.php')
-rw-r--r-- | inc/template.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php index cf3bf8da0..e9326632d 100644 --- a/inc/template.php +++ b/inc/template.php @@ -278,6 +278,11 @@ function _tpl_metaheaders_action($data){ foreach($inst as $attr){ echo '<',$tag,' ',buildAttributes($attr); if(isset($attr['_data'])){ + if($tag == 'script' && $attr['_data']) + $attr['_data'] = "<!--//--><![CDATA[//><!--\n". + $attr['_data']. + "\n//--><!]]>"; + echo '>',$attr['_data'],'</',$tag,'>'; }else{ echo '/>'; |