https://www.icyphoenix.com/viewtopic.php?f=27&t=555&p=5031#p5031
-----------------------------------
moreteavicar
Mon 20 Nov, 2006 23:20

Re: 058-014 - KB Injection And Minor Fixes
-----------------------------------
[quote user="Mighty Gorgon" post="4957"]The new block should work fine...

[b]moreteavicar[/b], are you sure that the new one is working only in the right section?

Anyway I wouldn't add that code to page_header.php... I would add it to index.php instead... but it is the original way we did it, and it is not the best way to go. Too many unuseful SQL for those who are not showing the calendar. :wink:[/quote]

Well, I've not tried your latest fix, but everyone using importal used to have problems with minical in the past - the problem being the order of data being parsed to the block, and the block generation. With the include in index.php (or portal.php), you could only get minical to display correctly on centre and right blocks! This fix ensured it went at the moment of block creation - the assumption is, you will only put this in page_header.php if you intend to use minical!

For a general fix, you could enclose it in an if statement, however, I see no reason why your fix it shouldn't work properly - putting the inclusion in the blockfile... But I do remember on netclectic's site that there was a problem doing it this way... I'll check it out...


