diff options
author | rxu <rxu@mail.ru> | 2014-09-28 15:17:32 +0800 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2014-09-28 15:39:06 +0800 |
commit | eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520 (patch) | |
tree | 5f1ec054cf74b0142add6032b8dc0c97d959e4f5 /phpBB/includes/functions.php | |
parent | 71ac6ab2b87ec1d606d5669b930ac4c7164e9b11 (diff) | |
download | forums-eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520.tar forums-eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520.tar.gz forums-eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520.tar.bz2 forums-eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520.tar.xz forums-eb2aa1f83a9f3a032e3574612fb4e56ce4d2e520.zip |
[ticket/13110] Add core event to the page_footer() function
Add core event to the page_footer() in includes/functions.php to allow
extensions handling overall page output before its displaying.
PHPBB3-13110
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index fe03efddf2..cf5bd0e827 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -5278,6 +5278,18 @@ function page_footer($run_cron = true, $display_template = true, $exit_handler = } } + /** + * Execute code and/or modify output before displaying the template. + * + * @event core.page_footer_after + * @var bool display_template Whether or not to display the template + * @var bool exit_handler Whether or not to run the exit_handler() + * + * @since 3.1.0-RC5 + */ + $vars = array('display_template', 'exit_handler'); + extract($phpbb_dispatcher->trigger_event('core.page_footer_after', compact($vars))); + if ($display_template) { $template->display('body'); |