Skip to content

Commit d03be5e

Browse files
committed
[ticket/13070] Use old 'template' class for template class hook
PHPBB3-13070
1 parent 84e68b3 commit d03be5e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

phpBB/phpbb/template/base.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ protected function call_hook($handle, $method)
142142
{
143143
global $phpbb_hook;
144144

145-
if (!empty($phpbb_hook) && $phpbb_hook->call_hook(array(__CLASS__, $method), $handle, $this))
145+
if (!empty($phpbb_hook) && $phpbb_hook->call_hook(array('template', $method), $handle, $this))
146146
{
147-
if ($phpbb_hook->hook_return(array(__CLASS__, $method)))
147+
if ($phpbb_hook->hook_return(array('template', $method)))
148148
{
149-
$result = $phpbb_hook->hook_return_result(array(__CLASS__, $method));
149+
$result = $phpbb_hook->hook_return_result(array('template', $method));
150150
return array($result);
151151
}
152152
}

0 commit comments

Comments
 (0)