Refactor cleanly.

This commit is contained in:
Mark Scherer 2015-06-17 11:38:42 +02:00
parent 2d7487d33c
commit 7dedf7f86d

View file

@ -71,7 +71,7 @@ class HtmlHelper extends AppHelper {
'submit' => '<input%s/>',
'submitimage' => '<input type="image" src="%s"%s/>',
'button' => '<button%s>%s</button>',
'image' => '<img src="%s" %s/>',
'image' => '<img src="%s"%s/>',
'tableheader' => '<th%s>%s</th>',
'tableheaderrow' => '<tr%s>%s</tr>',
'tablecell' => '<td%s>%s</td>',
@ -828,7 +828,7 @@ class HtmlHelper extends AppHelper {
unset($options['url']);
}
$image = sprintf($this->_tags['image'], $path, $this->_parseAttributes($options, null, '', ' '));
$image = sprintf($this->_tags['image'], $path, $this->_parseAttributes($options, null, ' ', ' '));
if ($url) {
return sprintf($this->_tags['link'], $this->url($url), null, $image);