]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use presence of IM plugins to decide if "IM" menu option should be shown in Connect
authorCraig Andrews <candrews@integralblue.com>
Tue, 15 Jun 2010 21:04:15 +0000 (17:04 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 15 Jun 2010 21:04:15 +0000 (17:04 -0400)
lib/connectsettingsaction.php

index b9c14799e03bb386eaeae1d95d2fe7e8afba2330..c3a88be552bb37466892ac105833ad6ddebf9f70 100644 (file)
@@ -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)'));