Don't expose global Twitter consumer key and secret, because that would be idiotic.
This commit is contained in:
parent
5c70481d30
commit
339b0b0a4d
|
@ -228,43 +228,9 @@ class TwitterAdminPanelForm extends AdminForm
|
|||
$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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user