mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 17:11:53 +02:00
[ticket/17135] Fix ACP jabber module
PHPBB-17135
This commit is contained in:
@@ -32,6 +32,8 @@ class acp_jabber
|
|||||||
global $db, $user, $template, $phpbb_log, $request;
|
global $db, $user, $template, $phpbb_log, $request;
|
||||||
global $config, $phpbb_container, $phpbb_root_path, $phpEx;
|
global $config, $phpbb_container, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
|
$jabber = $phpbb_container->get('messenger.method.jabber');
|
||||||
|
|
||||||
$user->add_lang('acp/board');
|
$user->add_lang('acp/board');
|
||||||
|
|
||||||
$submit = (isset($_POST['submit'])) ? true : false;
|
$submit = (isset($_POST['submit'])) ? true : false;
|
||||||
@@ -68,8 +70,6 @@ class acp_jabber
|
|||||||
$message = $user->lang['JAB_SETTINGS_CHANGED'];
|
$message = $user->lang['JAB_SETTINGS_CHANGED'];
|
||||||
$log = 'JAB_SETTINGS_CHANGED';
|
$log = 'JAB_SETTINGS_CHANGED';
|
||||||
|
|
||||||
$jabber = $phpbb_container->get('messenger.method.jabber');
|
|
||||||
|
|
||||||
// Is this feature enabled? Then try to establish a connection
|
// Is this feature enabled? Then try to establish a connection
|
||||||
if ($jabber->is_enabled())
|
if ($jabber->is_enabled())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user