mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
parent
6a3347ef7c
commit
06fc87fc2d
2 changed files with 3 additions and 1 deletions
|
@ -227,7 +227,7 @@ class HtmlHelper extends AppHelper {
|
|||
}
|
||||
$out .= sprintf($this->tags['metalink'], $options['link'], $this->_parseAttributes($options, array('link'), ' ', ' '));
|
||||
} else {
|
||||
$out = sprintf($this->tags['meta'], $this->_parseAttributes($options, array('type')));
|
||||
$out = sprintf($this->tags['meta'], $this->_parseAttributes($options, array('type'), ' ', ' '));
|
||||
}
|
||||
|
||||
if ($inline) {
|
||||
|
|
|
@ -1089,6 +1089,8 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
|
||||
$result = $this->Html->meta('keywords', 'these, are, some, meta, keywords');
|
||||
$this->assertTags($result, array('meta' => array('name' => 'keywords', 'content' => 'these, are, some, meta, keywords')));
|
||||
$this->assertPattern('/\s+\/>$/', $result);
|
||||
|
||||
|
||||
$result = $this->Html->meta('description', 'this is the meta description');
|
||||
$this->assertTags($result, array('meta' => array('name' => 'description', 'content' => 'this is the meta description')));
|
||||
|
|
Loading…
Add table
Reference in a new issue