PDA

View Full Version : $specialtemplates no longer works in config.php?


Boofo
05-14-2010, 01:17 AM
Can anyone please tell me what has changed between vb 3 and vb 4 that makes this not work any longer?

if(THIS_SCRIPT == 'index')
{
global $specialtemplates;
$specialtemplates = array_merge($specialtemplates, array('wol_spiders'));
}

Doesn't specialtemplates work there any more?

Lynne
05-14-2010, 02:48 AM
Try:

if(THIS_SCRIPT == 'index')
{
$cache[] = 'wol_spiders';
}

Boofo
05-14-2010, 02:56 AM
No, that doesn't work in the config.php. I put it there to save a query and it used to work in vb 3. That was an old trick I learned from Andreas.