summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitteradminpanel.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-03 18:20:45 -0500
committerEvan Prodromou <evan@status.net>2010-03-03 18:20:45 -0500
commit0f1c6e239acbf2c024c3aae9819d891f02b05bfd (patch)
tree42e923d0b8dd35ca2592a68a4dd26e686361b4c2 /plugins/TwitterBridge/twitteradminpanel.php
parent13521cb510f2377e9b865b0506f92ada9ef9b3cd (diff)
parent4103e8584c7ccfb444af0814345104afedd2c6fc (diff)
Merge branch 'testing'
Diffstat (limited to 'plugins/TwitterBridge/twitteradminpanel.php')
-rw-r--r--plugins/TwitterBridge/twitteradminpanel.php40
1 files changed, 3 insertions, 37 deletions
diff --git a/plugins/TwitterBridge/twitteradminpanel.php b/plugins/TwitterBridge/twitteradminpanel.php
index 0ed53bc05..a78a92c66 100644
--- a/plugins/TwitterBridge/twitteradminpanel.php
+++ b/plugins/TwitterBridge/twitteradminpanel.php
@@ -225,46 +225,12 @@ class TwitterAdminPanelForm extends AdminForm
);
$this->unli();
- $globalConsumerKey = common_config('twitter', 'global_consumer_key');
+ $globalConsumerKey = common_config('twitter', 'global_consumer_key');
$globalConsumerSec = common_config('twitter', 'global_consumer_secret');
- if (!empty($globalConsumerKey)) {
+ if (!empty($globalConsumerKey) && !empty($globalConsumerSec)) {
$this->li();
- $this->out->element(
- 'label',
- array('for' => 'global_consumer_key'),
- ''
- );
- $this->out->element(
- 'input',
- array(
- 'name' => 'global_consumer_key',
- 'type' => 'text',
- 'id' => 'global_consumer_key',
- 'value' => $globalConsumerKey,
- 'disabled' => 'true'
- )
- );
- $this->out->element('p', 'form_guide', _('Global consumer key'));
- $this->unli();
-
- $this->li();
- $this->out->element(
- 'label',
- array('for' => 'global_consumer_secret'),
- ''
- );
- $this->out->element(
- 'input',
- array(
- 'name' => 'global_consumer_secret',
- 'type' => 'text',
- 'id' => 'global_consumer_secret',
- 'value' => $globalConsumerSec,
- 'disabled' => 'true'
- )
- );
- $this->out->element('p', 'form_guide', _('Global consumer secret'));
+ $this->out->element('p', 'form_guide', _('Note: a global consumer key and secret are set.'));
$this->unli();
}