Use Platform::hasDatabaseSupport() and Platform::hasLdapSupport() in the resource config
refs #9683
This commit is contained in:
parent
d52bb7d92a
commit
e64ad87745
|
@ -236,10 +236,10 @@ class ResourceConfigForm extends ConfigForm
|
||||||
'livestatus' => 'Livestatus',
|
'livestatus' => 'Livestatus',
|
||||||
'ssh' => $this->translate('SSH Identity'),
|
'ssh' => $this->translate('SSH Identity'),
|
||||||
);
|
);
|
||||||
if ($resourceType === 'ldap' || Platform::extensionLoaded('ldap')) {
|
if ($resourceType === 'ldap' || Platform::hasLdapSupport()) {
|
||||||
$resourceTypes['ldap'] = 'LDAP';
|
$resourceTypes['ldap'] = 'LDAP';
|
||||||
}
|
}
|
||||||
if ($resourceType === 'db' || Platform::hasMysqlSupport() || Platform::hasPostgresqlSupport()) {
|
if ($resourceType === 'db' || Platform::hasDatabaseSupport()) {
|
||||||
$resourceTypes['db'] = $this->translate('SQL Database');
|
$resourceTypes['db'] = $this->translate('SQL Database');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue