Bug #1351: CClientScript::registerMetaTag() now allows to register multiple meta tags with the same set of attributes

This commit is contained in:
Alexander Makarov
2012-09-12 02:34:02 +04:00
3 changed files with 164 additions and 101 deletions

View File

@@ -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;