Permalink
Browse files

Remove spaces from image title tag. Fixes issue #148

  • Loading branch information...
markkevans authored and acidvertigo committed Aug 20, 2011
1 parent 0e97cd7 commit 3dcaeb04518ab1e9349355eefd857fbabf52b7e8
Showing with 2 additions and 2 deletions.
  1. +1 −1 catalog/admin/includes/functions/html_output.php
  2. +1 −1 catalog/includes/functions/html_output.php
@@ -70,7 +70,7 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
$image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) {
- $image .= ' title=" ' . tep_output_string($alt) . ' "';
+ $image .= ' title="' . tep_output_string($alt) . '"';
}
if (tep_not_null($width) && tep_not_null($height)) {
@@ -83,7 +83,7 @@ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
$image = '<img src="' . tep_output_string($src) . '" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) {
- $image .= ' title=" ' . tep_output_string($alt) . ' "';
+ $image .= ' title="' . tep_output_string($alt) . '"';
}
if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) {

0 comments on commit 3dcaeb0

Please sign in to comment.