mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user