Double quotes in code (category image not showing properly)
Posted: 07 Feb 2011, 16:29
Hi,
When assigning an image to the Phoca Gallery > Categories component, it renders double quotes where image align is used:
This is located in com_phocagallery > views > category > view.html.php, lines 564 through 569
All those quotes have to go 
Correct lines 566 and 567 should be:
When assigning an image to the Phoca Gallery > Categories component, it renders double quotes where image align is used:
Code: Select all
<div class="contentpane"><div class="contentdescription"><img src="cat_image.png" alt="Phoca Gallery" align=""left"" hspace=""6"" />Code: Select all
// Define image tag attributes
if (!empty ($category->image)) {
$attribs['align'] = '"'.$category->image_position.'"';
$attribs['hspace'] = '"6"';
$tmpl['image'] = JHTML::_('image', 'images/stories/'.$category->image, JText::_('Phoca gallery'), $attribs);
}
Correct lines 566 and 567 should be:
Code: Select all
$attribs['align'] = $category->image_position;
$attribs['hspace'] = 6;