diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-13 20:44:11 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-13 20:44:11 +0000 |
commit | 6ddeae9f5c4c56362fde04c54f5091a604b78955 (patch) | |
tree | 301c15a92f1a08787b6815d4b1db646ebed881f0 | |
parent | 6842d59732859beeb291e04bc433618bd586ce5b (diff) | |
download | brdo-6ddeae9f5c4c56362fde04c54f5091a604b78955.tar.gz brdo-6ddeae9f5c4c56362fde04c54f5091a604b78955.tar.bz2 |
- Bugfix: fixed problem with "exit" hook not always being called. Reported
by Jeremy. Patch by Moshe.
-rw-r--r-- | includes/common.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index 375754994..e0b2f3283 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1045,7 +1045,16 @@ function drupal_page_header() { exit(); } } + print $cache->data; + + /* + ** A hook for modules where modules may take action at the end of a + ** request good uses include setting a cache, page logging, etc. + */ + + module_invoke_all("exit"); + exit(); } } @@ -1068,8 +1077,11 @@ function drupal_page_footer() { page_set_cache(); } - // a hook for modules where modules may take action at the end of a request - // good uses include setting a cache, page logging, etc. + /* + ** A hook for modules where modules may take action at the end of a + ** request good uses include setting a cache, page logging, etc. + */ + module_invoke_all("exit"); } |