Skip to content

Commit

Permalink
[ticket/13110] Add core event to the page_footer() function
Browse files Browse the repository at this point in the history
Add core event to the page_haedar() in includes/functions.php to allow
extensions handling overall page output before its displaying.

PHPBB3-13110
  • Loading branch information
rxu committed Sep 28, 2014
1 parent 71ac6ab commit a4352be
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions phpBB/includes/functions.php
Expand Up @@ -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');
Expand Down

0 comments on commit a4352be

Please sign in to comment.