Joomla.it Forum

Componenti per Joomla! => Gallerie di immagini => : alexred 24 Feb 2011, 14:28:34

: segnalazioe problema con IE
: alexred 24 Feb 2011, 14:28:34
ho ricevuto questa mail:
Thank you for this excellent extension. I found a bug that appears when
run on Linux server and viewed with MS Internet Explorer. In (directory)
slideshow when you only have e.g. jpg files two empty pictures will be
shown.   I think it is PHP function “glob” that in certain platforms
returns an array with one empty item instead of an empty array.
I have made a fix for it after row 227 in mod_it_slideshow.php adding to
lines after the for loops:
// Adding png files to (directory) slideshow
$j=0;
for ($i = count($jpgimages); $i < count($jpgimages)+count($pngimages);
$i++) {
            if(strlen($pngimages[$j])>3) //Fix for glob bug
               $this->image[$i]=$pngimages[$j];
            $j=$j+1;
         }      
// Adding gif files to (directory) slideshow
$j=0;
for ($i = count($this->image); $i <
count($jpgimages)+count($pngimages)+count($gifimages); $i++) {
            if(strlen($gifimages[$j])>3) //Fix for glob bug
               $this->image[$i]=$gifimages[$j];
            $j=$j+1;
         }

/hans

da verificare di cosa si tratta e se č confermata la soluzione proposta.