Resolve conflicts and create a converter for old values to the new ones. Also let the user know they should be changing their configuration

This commit is contained in:
Mark Schouten 2015-10-26 10:11:57 +01:00
commit a2aba25712
4 changed files with 41 additions and 52 deletions

View file

@ -31,6 +31,14 @@ if (!isset($authdb)) {
$blocklogin = TRUE;
}
if (isset($defaults['primaryns'])) {
$errormsg = "You should reconfigure your \$defaults['primaryns'] settings to use <code>\$defaults['ns'][0]</code>. We converted if for you now.";
$defaults['ns'][] = $defaults['primaryns'];
if (isset($defaults['secondaryns'])) {
$defaults['ns'][] = $defaults['secondaryns'];
}
}
/* No need to change stuf below */
if (function_exists('curl_init') === FALSE) {