mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding fix for Ticket #900
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3110 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
14d5d8e979
commit
50411bd87b
1 changed files with 4 additions and 0 deletions
|
@ -375,6 +375,10 @@ class HtmlHelper extends Helper {
|
||||||
} else {
|
} else {
|
||||||
$url = $this->webroot . IMAGES_URL . $this->themeWeb . $path;
|
$url = $this->webroot . IMAGES_URL . $this->themeWeb . $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($htmlAttributes['alt'])) {
|
||||||
|
$htmlAttributes['alt'] = '';
|
||||||
|
}
|
||||||
return $this->output(sprintf($this->tags['image'], $url, $this->parseHtmlOptions($htmlAttributes, null, '', ' ')), $return);
|
return $this->output(sprintf($this->tags['image'], $url, $this->parseHtmlOptions($htmlAttributes, null, '', ' ')), $return);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue