From 053cf790a93e9cfb521f484901d79c72783f868f Mon Sep 17 00:00:00 2001
From: Igor Wiedler $template->display($handle, $include_once = true);
which is called directly before outputting the (not-yet-compiled) template.
exit_handler();
which is called at the very end of phpBB3's execution.
Please note: The $template->display
hook takes a third $template
argument, which is the template instance being used, which should be used instead of the global.
There are also valid external constants you may want to use if you embed phpBB3 into your application:
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index f1c8094a9b..6347633b14 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -205,7 +205,7 @@ class template { global $user, $phpbb_hook; - if (!empty($phpbb_hook) && $phpbb_hook->call_hook(array(__CLASS__, __FUNCTION__), $handle, $include_once)) + if (!empty($phpbb_hook) && $phpbb_hook->call_hook(array(__CLASS__, __FUNCTION__), $handle, $include_once, $this)) { if ($phpbb_hook->hook_return(array(__CLASS__, __FUNCTION__))) {