1
0
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:
Nathan Guse
2012-10-04 14:27:43 -05:00
parent 64820546d7
commit cea94d8984
18 changed files with 204 additions and 218 deletions

View File

@@ -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()