I would discourage changing the system functions because your hacks
will be lost every time you upgrade. It's better if I can provide a
hook for you to insert custom code via a config.php file, and I'm
happy to provide those hooks as needed. Can you tell me exactly where
you inserted this code?  Perhaps I can find a way to make a nice
general purpose hook for you and others...

Probably it's the BOLTgetzones function. What I'll do is add a line at
the top that says bascially, if function_exists(myBOLTgetzones) use
that function instead. Then you can customize myBOLTgetzones in
config.php to your hearts content (working off a copy of the core
function as your base). Then you will only have to repeat the hacking
process when there is a change in this one function.

Actually this is such an important function, I went ahead and added
the hook to the core for the next release.

Cheers,
Dan



On Mon, Feb 16, 2009 at 2:46 AM, MattF <[email protected]> wrote:
>
>
> A suggested addition would be to have the system report 404 errors to
> the log file.
>
> Example that I've added to my library.php:
>
>                if ((!BOLTexists($pageLink)) && (BOLTgetlink
> ('missing', '', '', 'action.') == 'action.missing')) {
>                        error_log("Boltwire page does not exist: /" .
> $pageLink);
> ##                    error_log("File does not exist: /" . $pageLink);
> ## Output similar to apache's normal output
>
>                        header('HTTP/1.1 404 Not Found');^M
>                        return;^M
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to