My theme uses album codeblock values in the next_album() loop in the index.php file. I had it working fine before I upgraded to 1.4.0.3, but now it's not working in any theme.
The values are still being stored in the database, and they are still available on album.php, so I'm thinking there's a bug limiting the scope of getCodeBlock()?
Thanks
Comments
`case 'index.php':`
To this:
`
case 'index.php':
$getcodeblock = $_zp_current_album->getCodeblock();
break;
`
fixes the issue I was having.
Anyway, the code you have made while it works for you may well cause problems elsewhere. The getCodeblock() function is intended for pages associated with objects (album.php, news.php, etc.) and gets the codeblock of the "current" object.
What you really need to be doing is using the object model to get the album codeblock. Your theme should use
`
$getcodeblock = $_zp_current_album->getCodeblock();
$codeblock = unserialize($getcodeblock);
@eval('/>'.$codeblock[$number]);
`