aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/notification/method/jabber.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:27:43 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-04 14:27:43 -0500
commitcea94d89848a806f449610ddb2a7df7b7eec1328 (patch)
tree9d246a59cafecef6b7e8e7c62b9d6c2d2d727651 /phpBB/includes/notification/method/jabber.php
parent64820546d758b34720888311d0abffcf95609436 (diff)
downloadforums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.gz
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.bz2
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.tar.xz
forums-cea94d89848a806f449610ddb2a7df7b7eec1328.zip
[ticket/11103] Use dependency injection instead of phpbb_container
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/notification/method/jabber.php')
-rw-r--r--phpBB/includes/notification/method/jabber.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/notification/method/jabber.php b/phpBB/includes/notification/method/jabber.php
index 9232d8fc45..664e387d61 100644
--- a/phpBB/includes/notification/method/jabber.php
+++ b/phpBB/includes/notification/method/jabber.php
@@ -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()