mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge branch 'master' into 2.5
This commit is contained in:
commit
3b8208be2e
2 changed files with 9 additions and 1 deletions
|
@ -1757,6 +1757,14 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
)
|
||||
);
|
||||
$this->assertTags($result, $expected);
|
||||
|
||||
$this->Html->request->webroot = '/testing/';
|
||||
$result = $this->Html->meta('icon');
|
||||
$expected = array(
|
||||
'link' => array('href' => '/testing/favicon.ico', 'type' => 'image/x-icon', 'rel' => 'icon'),
|
||||
array('link' => array('href' => '/testing/favicon.ico', 'type' => 'image/x-icon', 'rel' => 'shortcut icon'))
|
||||
);
|
||||
$this->assertTags($result, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -253,7 +253,7 @@ class HtmlHelper extends AppHelper {
|
|||
);
|
||||
|
||||
if ($type === 'icon' && $url === null) {
|
||||
$types['icon']['link'] = $this->webroot('favicon.ico');
|
||||
$types['icon']['link'] = 'favicon.ico';
|
||||
}
|
||||
|
||||
if (isset($types[$type])) {
|
||||
|
|
Loading…
Reference in a new issue