hiya,
if you call page.cgi with:
page.cgi?p=template-that-doesnt-exist
it causes a fatal error.
can anyone supply a fix (posted here) that will stop the error happening? What I imagine is that if it's called with a p templtate name that doesn't exist it defaults to the error page.
Just so you know, what I'm doing is calling some additional information pages (templates) through the page.cgi script, so to get them I'm doing page.cgi?p=infopage - as an example. So it would need to default to the error page rather than just present the home page.
cheers,
regan.
if you call page.cgi with:
page.cgi?p=template-that-doesnt-exist
it causes a fatal error.
can anyone supply a fix (posted here) that will stop the error happening? What I imagine is that if it's called with a p templtate name that doesn't exist it defaults to the error page.
Just so you know, what I'm doing is calling some additional information pages (templates) through the page.cgi script, so to get them I'm doing page.cgi?p=infopage - as an example. So it would need to default to the error page rather than just present the home page.
cheers,
regan.