We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8522
    • 145 Posts
    Hi

    I am having an issue, where it doesn’t generate the big_image. It happens under following circumstances:

    max_big_size is defined, so it is inside the condition "if($this->mgconfig[’max_big_size’] != 0){"

    mg0.5.2 on line 419 or
    mg-trunk-166 on line 446

    Now the problem occurs if this condition fails:
    if($this->mgconfig['max_pic_size']>0 && ($imagesize[0]>$this->mgconfig['max_pic_size'] || $imagesize[1]>$this->mgconfig['max_pic_size'])) {

    There won’t be a copy for the big_image (please confirm).

    My fix is to add an additional else with "//else just copy" on line 430 (mg0.5.2) or line 457 (trunk166).
    }else{
    	//else just copy
    	copy($this->path_to_gal.$name, $this->path_to_gal."big_".$name);
    }


    I attached the fix for trunk166 (line 457) tagged with //eerne

    Thanks for having a look at it.
      • 7923
      • 4,213 Posts
      Yep, that’s correct.. I’ll get it added to the code, thanks a lot for the report!


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."