Author Topic: VM 1.1.6: product details: wrong codepage of image title  (Read 2199 times)

Paulchen

  • Beginner
  • *
  • Posts: 4
VM 1.1.6: product details: wrong codepage of image title
« on: January 04, 2011, 18:32:40 pm »
Hi camrades!

Did anybody solve such a problem?

I have more than one picture of each product in my shop. The first one has right russian title, but all the next have wrong codepage.




postman206

  • Beginner
  • *
  • Posts: 1
Re: VM 1.1.6: product details: wrong codepage of image title
« Reply #1 on: January 05, 2011, 13:14:15 pm »
I also have that problem.

I found that it is problem with file
components/com_virtuemart/themes/default/theme.php

In version 1.1.6 was changed line 121. Now it looks like
$html .= vmCommonHTML::getLightboxImageLink( $image->file_url, $thumbtag, $title ? $title : stripslashes(htmlentities($image->file_title,ENT_QUOTES)), 'product'.$product_id );

and cases the problem

if it will be changed to
$html .= vmCommonHTML::getLightboxImageLink( $image->file_url, $thumbtag, $title ? $title : $image->file_title, 'product'.$product_id );

the problem will resolved. This line from old version theme.php from 1.1.4 package.
I dont spemildt in PHP and dont know is it right solution. May be developers could have a look?