Skip to content

Commit

Permalink
Refactor cleanly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Jun 17, 2015
1 parent 2d7487d commit 7dedf7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/View/Helper/HtmlHelper.php
Expand Up @@ -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>',
Expand Down Expand Up @@ -828,7 +828,7 @@ public function image($path, $options = array()) {
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);
Expand Down

0 comments on commit 7dedf7f

Please sign in to comment.