X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscriptions.php;h=b4575565b902fe1a9da9d1417b15561d1858023b;hb=2e4ec0df0ecc4fc8e41dea46ddfe4bd1796208ff;hp=697577c1073a98fac951d70e56e5562a39e377d2;hpb=9573f725c12e291e4bd3e3156557e41a10753d76;p=quix0rs-gnu-social.git diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 697577c107..b4575565b9 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -152,16 +152,6 @@ class SubscriptionsAction extends GalleryAction $this->elementEnd('div'); } - function showSections() - { - parent::showSections(); - $cloud = new SubscriptionsPeopleTagCloudSection($this); - $cloud->show(); - - $cloud2 = new SubscriptionsPeopleSelfTagCloudSection($this); - $cloud2->show(); - } - /** * Link to feeds of subscriptions * @@ -215,7 +205,9 @@ class SubscriptionsListItem extends SubscriptionListItem return; } - if (!common_config('xmpp', 'enabled') && !common_config('sms', 'enabled')) { + $transports = array(); + Event::handle('GetImTransports', array(&$transports)); + if (!$transports && !common_config('sms', 'enabled')) { return; } @@ -225,7 +217,7 @@ class SubscriptionsListItem extends SubscriptionListItem 'action' => common_local_url('subedit'))); $this->out->hidden('token', common_session_token()); $this->out->hidden('profile', $this->profile->id); - if (common_config('xmpp', 'enabled')) { + if ($transports) { $attrs = array('name' => 'jabber', 'type' => 'checkbox', 'class' => 'checkbox', @@ -235,8 +227,8 @@ class SubscriptionsListItem extends SubscriptionListItem } $this->out->element('input', $attrs); - // TRANS: Checkbox label for enabling Jabber messages for a profile in a subscriptions list. - $this->out->element('label', array('for' => 'jabber-'.$this->profile->id), _('Jabber')); + // TRANS: Checkbox label for enabling IM messages for a profile in a subscriptions list. + $this->out->element('label', array('for' => 'jabber-'.$this->profile->id), _m('LABEL','IM')); } else { $this->out->hidden('jabber', $sub->jabber); }