[geeklog-devtalk] lib-custom and the include location in lib-common
Blaine Lang
geeklog at langfamily.ca
Tue Mar 29 12:22:37 EST 2005
I was wondering about the location for the inclusion of lib-custom.php at the top of lib-common. We have the inclusion of all plugins functions at the end of lib-common.php. This means that any code in lib-custom can not use plugin functions unless they are called only after lib-common has completed executing.
Additionally, lib-custom is called before $_USER is initialized so code can not use $_USER either (unless it's called after lib-common completes)
There is a need to have code in lib-custom execute before any initializtion of $_USER (and the main user session) - and believe thats why it's called where it is now.
Is there not a need for both - a Pre-Initialize and Post Initialize lib-custom.
Comments?
Blaine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eight.pairlist.net/pipermail/geeklog-devtalk/attachments/20050329/c6a07e17/attachment.htm>
More information about the geeklog-devtalk
mailing list