From: Craig Andrews Date: Tue, 15 Jun 2010 21:04:15 +0000 (-0400) Subject: Use presence of IM plugins to decide if "IM" menu option should be shown in Connect X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4ee2c12507b046e048ff023b94872cbbe9bde9a4;p=quix0rs-gnu-social.git Use presence of IM plugins to decide if "IM" menu option should be shown in Connect --- diff --git a/lib/connectsettingsaction.php b/lib/connectsettingsaction.php index b9c14799e0..c3a88be552 100644 --- a/lib/connectsettingsaction.php +++ b/lib/connectsettingsaction.php @@ -105,7 +105,7 @@ class ConnectSettingsNav extends Widget # action => array('prompt', 'title') $menu = array(); - if (common_config('xmpp', 'enabled')) { + if (Event::handle('GetImTransports', array(&$transports))) { $menu['imsettings'] = array(_('IM'), _('Updates by instant messenger (IM)'));