Use presence of IM plugins to decide if "IM" menu option should be shown in Connect
This commit is contained in:
parent
004200f958
commit
4ee2c12507
@ -105,7 +105,7 @@ class ConnectSettingsNav extends Widget
|
|||||||
|
|
||||||
# action => array('prompt', 'title')
|
# action => array('prompt', 'title')
|
||||||
$menu = array();
|
$menu = array();
|
||||||
if (common_config('xmpp', 'enabled')) {
|
if (Event::handle('GetImTransports', array(&$transports))) {
|
||||||
$menu['imsettings'] =
|
$menu['imsettings'] =
|
||||||
array(_('IM'),
|
array(_('IM'),
|
||||||
_('Updates by instant messenger (IM)'));
|
_('Updates by instant messenger (IM)'));
|
||||||
|
Loading…
Reference in New Issue
Block a user