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

[ticket/11103] Including the set call in the declaration throws errors

Call the set_notification_manager from the load_object function instead.

PHPBB3-11103
This commit is contained in:
Nathan Guse
2013-01-15 12:29:20 -06:00
parent 07282a30ae
commit f089e099fe
2 changed files with 8 additions and 35 deletions

View File

@@ -841,6 +841,13 @@ class phpbb_notification_manager
*/
protected function load_object($object_name)
{
return $this->phpbb_container->get($object_name);
$object = $this->phpbb_container->get($object_name);
if (method_exists($object, 'set_notification_manager'))
{
$object->set_notification_manager($this);
}
return $object;
}
}