aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-11-23 16:09:09 +0100
committerOleg Pudeyev <oleg@bsdpower.com>2011-04-24 11:23:46 -0400
commit81962d1d8ff083dd366c77e7d3858fd2c9ed7d43 (patch)
treeb1daebf54c95e97dc052da9992f11a95dd45dce5
parentc8db531fcb11cdeeefcae88b05c2674b74e2d824 (diff)
downloadforums-81962d1d8ff083dd366c77e7d3858fd2c9ed7d43.tar
forums-81962d1d8ff083dd366c77e7d3858fd2c9ed7d43.tar.gz
forums-81962d1d8ff083dd366c77e7d3858fd2c9ed7d43.tar.bz2
forums-81962d1d8ff083dd366c77e7d3858fd2c9ed7d43.tar.xz
forums-81962d1d8ff083dd366c77e7d3858fd2c9ed7d43.zip
[ticket/9924] Pass template instance into $template->display hook
This is a cherry-pick of 053cf790a93e9cfb521f484901d79c72783f868f which appears to have been partially reverted here. PHPBB3-9924
-rw-r--r--phpBB/includes/template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 24d7aeadd0..2b4c7a09f7 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -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__)))
{