News:

Looking for documentation? Take a look on our wiki

Main Menu

Bug in virtuemart mediahandler.php with my fix

Started by vdweb.cz, March 16, 2024, 21:42:14 PM

Previous topic - Next topic

vdweb.cz

Hi, i found bug:
Joomla! 4.4.3
VirtueMart 4.2.6 10972


In new version of virtuemart you support this in config: setRealImageSize


but in file you dont have write good IF syntax:

administrator/components/com_virtuemart/helpers/mediahandler.php

original on line 680:

if ($this->setRealImageSize and empty($width) or empty($height)) {

correcht is:

if ($this->setRealImageSize and (empty($width) or empty($height))) {



original on line 812:

if ($this->setRealImageSize and empty($imageArgs['width']) or empty($imageArgs['height'])) { // Spiros

correct is:

if ($this->setRealImageSize and (empty($imageArgs['width']) or empty($imageArgs['height']))) { // Spiros




after that if i had configure setRealImageSize to value 0 system dont show me widht and height atribute in images... that is correct...