mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Use dependency injection instead of phpbb_container
PHPBB3-11103
This commit is contained in:
@@ -36,7 +36,7 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
*/
|
||||
public function is_available()
|
||||
{
|
||||
return ($this->global_available() && $this->phpbb_container->get('user')->data['jabber']);
|
||||
return ($this->global_available() && $this->user->data['jabber']);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,9 +45,7 @@ class phpbb_notification_method_jabber extends phpbb_notification_method_email
|
||||
*/
|
||||
public function global_available()
|
||||
{
|
||||
$config = $this->phpbb_container->get('config');
|
||||
|
||||
return ($config['jab_enable'] && @extension_loaded('xml'));
|
||||
return ($this->config['jab_enable'] && @extension_loaded('xml'));
|
||||
}
|
||||
|
||||
public function notify()
|
||||
|
Reference in New Issue
Block a user