Double quotes in code (category image not showing properly)

Phoca Gallery - image gallery extension
Demonike
Phoca Member
Phoca Member
Posts: 11
Joined: 10 Jun 2009, 23:54

Double quotes in code (category image not showing properly)

Post by Demonike »

Hi,

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"" />
This is located in com_phocagallery > views > category > view.html.php, lines 564 through 569

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);
		}
All those quotes have to go :D

Correct lines 566 and 567 should be:

Code: Select all

$attribs['align'] = $category->image_position;
$attribs['hspace'] = 6;
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Double quotes in code (category image not showing proper

Post by Jan »

Hi,thank you for this info, I will fix it in next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply