mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 02:36:38 +02:00
new hook system (do not get it confused with events or plugins please)
- introducing two new hookable functions too git-svn-id: file:///svn/phpbb/trunk@8100 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -147,7 +147,16 @@ class template
|
||||
*/
|
||||
function display($handle, $include_once = true)
|
||||
{
|
||||
global $user;
|
||||
global $user, $phpbb_hook;
|
||||
|
||||
// To let users change the complete templated page (all variables available)
|
||||
if ($phpbb_hook->call_hook(array(get_class(), __FUNCTION__), $handle, $include_once))
|
||||
{
|
||||
if ($phpbb_hook->hook_return(array(get_class(), __FUNCTION__)))
|
||||
{
|
||||
return $phpbb_hook->hook_return_result(array(get_class(), __FUNCTION__));
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('IN_ERROR_HANDLER'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user