diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-08-06 22:38:06 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-08-06 22:38:06 -0400 |
commit | 1c3a1360a9bde9bd916df8a2e064438d3ef600e7 (patch) | |
tree | 775668662785556b7d79209b9cc453368d04c053 /actions/twittersettings.php | |
parent | 49eb6009a54e9fd5609cce1ba7cfc9d85edff8c0 (diff) | |
parent | 7c9e12a0b8117809d559e1120b5f4f0cf578e646 (diff) |
Merge commit 'jeff-themovie/0.8.x-subsystems-enabled' into 0.8.x
Diffstat (limited to 'actions/twittersettings.php')
-rw-r--r-- | actions/twittersettings.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/twittersettings.php b/actions/twittersettings.php index 2b742788e..3343dba95 100644 --- a/actions/twittersettings.php +++ b/actions/twittersettings.php @@ -85,6 +85,12 @@ class TwittersettingsAction extends ConnectSettingsAction function showContent() { + if (!common_config('twitter', 'enabled')) { + $this->element('div', array('class' => 'error'), + _('Twitter is not available.')); + return; + } + $user = common_current_user(); $profile = $user->getProfile(); |