mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-11 02:26:56 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user