1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/9924] Pass template instance into $template->display hook

This is a cherry-pick of 053cf790a9
which appears to have been partially reverted here.

PHPBB3-9924
This commit is contained in:
Igor Wiedler
2010-11-23 16:09:09 +01:00
committed by Oleg Pudeyev
parent c8db531fcb
commit 81962d1d8f

View File

@@ -252,7 +252,7 @@ class phpbb_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__)))
{