Get album id in printImageStatistic

I'm trying to sync my website dmb with zenphoto from

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 :)


Sign In or Register to comment.