Hello,
I have upgraded my local zenphoto album from 1.2.3 to 1.2.5.
On my local
wordpress blog, I use a heading.php file to display a random banner taken from the album.
The content of the heading.php file was provided here :
http://www.zenphoto.org/support/topic.php?id=2639and works fine.
After upgrade, I get the following message (note the random image is displayed) :
Notice: Use of undefined constant silent - assumed 'silent' in /var/www/wordpress/zenphoto/themes/testing-dev/heading.php on line 4
The line 4 and next are like below :
`
if (is_null($randomImage) || checkforPassword(silent)) {
$randomImage= new Image(new Album(new Gallery(), ''), 'zen-logo.jpg' );
}
`
Should I change something in the heading.php because of version 1.2.5 ? I would like to fix this before upgrading the on-line album.
Thanks and regards,
pled
Comments
Tried, but same message. Tried with Effervescence theme, and I still get the same.
Seems more related to usage of checkforPassword(silent), isn't it ?
Should silent be defined ? As I access zenphoto from wordpress, through heading.php file ?
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functioncheckforPassword
`
if (is_null($randomImage) || checkforPassword(true)) {
$randomImage= newImage(new Album(new Gallery(), ''), 'zen-logo.jpg' );
}
`
Thank you for your great support.
pled