Show IM configuration page if XMPP, IRC or MSN plugins are enabled

This commit is contained in:
Luke Fitzgerald 2011-09-20 02:40:15 +01:00
parent 771c9ebc20
commit c99e469c5e

View File

@ -121,7 +121,7 @@ class SettingsNav extends Menu
Event::handle('EndAccountSettingsNav', array(&$this->action));
if (common_config('xmpp', 'enabled')) {
if (class_exists('ImPlugin') || class_exists('IrcPlugin') || class_exists('MsnPlugin')) {
$this->action->menuItem(common_local_url('imsettings'),
// TRANS: Menu item in settings navigation panel.
_m('MENU','IM'),