mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/events] Adding adm_page_footer_override event
Add an event that adds the possibility to override the phpBB `adm_page_footer` function. PHPBB3-9550
This commit is contained in:
parent
95e81fb402
commit
5869128828
1 changed files with 12 additions and 0 deletions
|
@ -108,6 +108,18 @@ function adm_page_footer($copyright_html = true)
|
|||
global $db, $config, $template, $user, $auth, $cache;
|
||||
global $starttime, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
global $request;
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
// A listener can set this variable to `true` when it overrides this function
|
||||
$adm_page_footer_override = false;
|
||||
|
||||
$vars = array('copyright_html', 'adm_page_footer_override');
|
||||
extract($phpbb_dispatcher->trigger_event('core.adm_page_footer_override', compact($vars)));
|
||||
|
||||
if ($adm_page_footer_override)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Output page creation time
|
||||
if (defined('DEBUG'))
|
||||
|
|
Loading…
Add table
Reference in a new issue