Only show import friends timeline option if bidirectional bridge enabled

This commit is contained in:
Zach Copley 2009-05-07 14:41:53 -07:00
parent 4b0e5ff271
commit fbf23ae0ee
1 changed files with 16 additions and 7 deletions

View File

@ -158,13 +158,22 @@ class TwittersettingsAction extends ConnectSettingsAction
($flink->friendsync & FOREIGN_FRIEND_RECV) : ($flink->friendsync & FOREIGN_FRIEND_RECV) :
false); false);
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementStart('li');
$this->checkbox('noticerecv', if (common_config('twitterbridge','enabled')) {
_('Import my Friends Timeline.'), $this->elementStart('li');
($flink) ? $this->checkbox('noticerecv',
($flink->noticesync & FOREIGN_NOTICE_RECV) : _('Import my Friends Timeline.'),
false); ($flink) ?
$this->elementEnd('li'); ($flink->noticesync & FOREIGN_NOTICE_RECV) :
false);
$this->elementEnd('li');
} else {
// preserve setting even if bidrection bridge toggled off
if ($flink && ($flink->noticesync & FOREIGN_NOTICE_RECV)) {
$this->hidden('noticerecv', true, 'noticerecv');
}
}
$this->elementEnd('ul'); $this->elementEnd('ul');
if ($flink) { if ($flink) {