summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-16 19:50:37 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-16 19:50:37 -0400
commit136a69a387719d560f97b6f8ee73d1224b2bac8c (patch)
treee9c0c02d89119a9d8c35b2d0c2485d8d888a65f4 /lib/common.php
parent46c77b83b1b10663ac80f6e1df604d529bb31dd4 (diff)
parent75a0a3e18b001454ab4844bc63d4052faf502138 (diff)
Merge commit 'jeff-themovie/0.8.x-openid-enabled' into 0.8.x
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index f26155e70..3fc047af9 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -170,6 +170,8 @@ $config =
'host' => null, # only set if != server
'debug' => false, # print extra debug info
'public' => array()), # JIDs of users who want to receive the public stream
+ 'openid' =>
+ array('enabled' => true),
'invite' =>
array('enabled' => true),
'sphinx' =>
@@ -371,6 +373,12 @@ if ($_db_name != 'laconica' && !array_key_exists('ini_'.$_db_name, $config['db']
$config['db']['ini_'.$_db_name] = INSTALLDIR.'/classes/laconica.ini';
}
+// Ignore openidonly if OpenID is disabled
+
+if (!$config['openid']['enabled']) {
+ $config['site']['openidonly'] = false;
+}
+
// XXX: how many of these could be auto-loaded on use?
require_once 'Validate.php';