summaryrefslogtreecommitdiff
path: root/plugins/OpenID/openidsettings.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/OpenID/openidsettings.php')
-rw-r--r--plugins/OpenID/openidsettings.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/OpenID/openidsettings.php b/plugins/OpenID/openidsettings.php
index 26bf64836..57389903d 100644
--- a/plugins/OpenID/openidsettings.php
+++ b/plugins/OpenID/openidsettings.php
@@ -82,6 +82,12 @@ class OpenidsettingsAction extends AccountSettingsAction
function showContent()
{
+ if (!common_config('openid', 'enabled')) {
+ $this->element('div', array('class' => 'error'),
+ _('OpenID is not available.'));
+ return;
+ }
+
$user = common_current_user();
$this->elementStart('form', array('method' => 'post',