Update framework/web/CClientScript.php

Use the metatag options excluding the content as the key name.
Will allow changing/overwriting of previously registered meta tags.
This commit is contained in:
Alex-Code
2012-10-29 08:53:06 +00:00
parent 91547193a6
commit 679bec7baf

View File

@@ -652,8 +652,7 @@ class CClientScript extends CApplicationComponent
$options['name']=$name;
if($httpEquiv!==null)
$options['http-equiv']=$httpEquiv;
$options['content']=$content;
$this->metaTags[]=$options;
$this->metaTags[serialize($options)]=array_merge($options, array('content'=>$content));
$params=func_get_args();
$this->recordCachingAction('clientScript','registerMetaTag',$params);
return $this;