mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-21 15:36:53 +01:00
Bug #1351: CClientScript::registerMetaTag() now allows to register multiple meta tags with the same set of attributes
This commit is contained in:
@@ -632,7 +632,7 @@ class CClientScript extends CApplicationComponent
|
||||
* Registers a meta tag that will be inserted in the head section (right before the title element) of the resulting page.
|
||||
*
|
||||
* <b>Note:</b>
|
||||
* Meta tags with same attributes will be rendered more then once if called with different values.
|
||||
* Each call of this method will cause a rendering of new meta tag, even if their attributes are equal.
|
||||
*
|
||||
* <b>Example:</b>
|
||||
* <pre>
|
||||
@@ -653,7 +653,7 @@ class CClientScript extends CApplicationComponent
|
||||
if($httpEquiv!==null)
|
||||
$options['http-equiv']=$httpEquiv;
|
||||
$options['content']=$content;
|
||||
$this->metaTags[serialize($options)]=$options;
|
||||
$this->metaTags[]=$options;
|
||||
$params=func_get_args();
|
||||
$this->recordCachingAction('clientScript','registerMetaTag',$params);
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user