summaryrefslogtreecommitdiff
path: root/actions/twittersettings.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-05-07 14:41:53 -0700
committerZach Copley <zach@controlyourself.ca>2009-05-07 14:41:53 -0700
commitfbf23ae0ee4c8c63e80e3511aa7fce980b8d1ed5 (patch)
tree9a865034a44d739f9d00fc6898ca32f5316b83d3 /actions/twittersettings.php
parent4b0e5ff271d4ac0af3256b2716f1e1362ddb02d8 (diff)
Only show import friends timeline option if bidirectional bridge enabled
Diffstat (limited to 'actions/twittersettings.php')
-rw-r--r--actions/twittersettings.php23
1 files changed, 16 insertions, 7 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php
index 580d9ecf7..1bce57695 100644
--- a/actions/twittersettings.php
+++ b/actions/twittersettings.php
@@ -158,13 +158,22 @@ class TwittersettingsAction extends ConnectSettingsAction
($flink->friendsync & FOREIGN_FRIEND_RECV) :
false);
$this->elementEnd('li');
- $this->elementStart('li');
- $this->checkbox('noticerecv',
- _('Import my Friends Timeline.'),
- ($flink) ?
- ($flink->noticesync & FOREIGN_NOTICE_RECV) :
- false);
- $this->elementEnd('li');
+
+ if (common_config('twitterbridge','enabled')) {
+ $this->elementStart('li');
+ $this->checkbox('noticerecv',
+ _('Import my Friends Timeline.'),
+ ($flink) ?
+ ($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');
if ($flink) {