![]() |
|
Get album id in printImageStatistic - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Get album id in printImageStatistic (/thread-10585.html) |
Get album id in printImageStatistic - SubJunk - 2012-11-15 I'm trying to sync my website dmb with zenphoto 1.4.3.4 from 1.4.2.4. In the function printImageStatistic() in zp-core/zp-extensions/image_album_statistics.php I was using $image->getAlbum()->id to get the ID of the album, however after the update I'm getting an error "Cannot access protected property Album::$id". Is there another way I can access the album ID from that context without unprotecting id? By the way I understand if you don't want to offer support for this since it's custom code, but I just thought it might be faster to ask than go digging around Get album id in printImageStatistic - acrylian - 2012-11-15 Yes, Get album id in printImageStatistic - SubJunk - 2012-11-16 Works great, thanks! |