From 64820546d758b34720888311d0abffcf95609436 Mon Sep 17 00:00:00 2001 From: Nathan Guse Date: Thu, 4 Oct 2012 13:40:40 -0500 Subject: [ticket/11103] Move notification files to includes/notification/ PHPBB3-11103 --- phpBB/includes/notification/method/jabber.php | 62 +++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 phpBB/includes/notification/method/jabber.php (limited to 'phpBB/includes/notification/method/jabber.php') diff --git a/phpBB/includes/notification/method/jabber.php b/phpBB/includes/notification/method/jabber.php new file mode 100644 index 0000000000..9232d8fc45 --- /dev/null +++ b/phpBB/includes/notification/method/jabber.php @@ -0,0 +1,62 @@ +global_available() && $this->phpbb_container->get('user')->data['jabber']); + } + + /** + * Is this method available at all? + * This is checked before notifications are sent + */ + public function global_available() + { + $config = $this->phpbb_container->get('config'); + + return ($config['jab_enable'] && @extension_loaded('xml')); + } + + public function notify() + { + if (!$this->global_available()) + { + return; + } + + return parent::notify(); + } +} -- cgit v1.2.1