* Setup: some authtication types eg. Cas were not shown in setup

This commit is contained in:
Ralf Becker 2016-06-09 08:48:18 +02:00
parent 1ce17f4656
commit b381843d01

View File

@ -454,7 +454,7 @@ class setup_cmd_config extends setup_cmd
foreach(scandir(EGW_INCLUDE_ROOT.'/api/src/Auth') as $file) foreach(scandir(EGW_INCLUDE_ROOT.'/api/src/Auth') as $file)
{ {
$matches = null; $matches = null;
if (preg_match('/^([a-z0-9]+)\.php$/', $file, $matches) && if (preg_match('/^([a-z0-9]+)\.php$/i', $file, $matches) &&
!isset($auth_types[strtolower($matches[1])]) && $matches[1] != 'Backend') !isset($auth_types[strtolower($matches[1])]) && $matches[1] != 'Backend')
{ {
$auth_types[strtolower($matches[1])] = $matches[1]; $auth_types[strtolower($matches[1])] = $matches[1];