Displaying a random image from an .alb album inside a folder with spaces in the name...
Here is the code I'm using:
<?php $randomImage = getRandomImagesAlbum("My Dog Nucci/nucci.alb"); $randomImageURL = getURL($randomImage); print "<a href='".getURL($randomImage)."' title='".$randomImage->getTitle()."'><img src='".$randomImage->getSizedImage('200')."' alt='".$randomImage->getTitle()."' /></a>"; ?>
You can see My Dog Nucci has spaces...The error I'm getting is:
Fatal error: Call to a member function getAlbumName() on a non-object in /zp-core/template-functions.php on line 3670
If I replace that folder with another one w/o the space in the name it works perfectly.
I can't change the folder name so is there another way to get it to read the folder correctly via the code above?
My%20dog%20Nucci doesn't work either...
Just upgraded to 1.4.5.9 and I'm noticing this problem...not sure if it was there before...
Thanks