Merge branch 'master' into 2.5

This commit is contained in:
mark_story 2013-11-18 21:49:13 -05:00
commit 3b8208be2e
2 changed files with 9 additions and 1 deletions

View file

@ -1757,6 +1757,14 @@ class HtmlHelperTest extends CakeTestCase {
) )
); );
$this->assertTags($result, $expected); $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);
} }
/** /**

View file

@ -253,7 +253,7 @@ class HtmlHelper extends AppHelper {
); );
if ($type === 'icon' && $url === null) { if ($type === 'icon' && $url === null) {
$types['icon']['link'] = $this->webroot('favicon.ico'); $types['icon']['link'] = 'favicon.ico';
} }
if (isset($types[$type])) { if (isset($types[$type])) {