Use Platform::hasDatabaseSupport() and Platform::hasLdapSupport() in the resource config

refs #9683
This commit is contained in:
Eric Lippmann 2015-09-07 16:44:06 +02:00
parent d52bb7d92a
commit e64ad87745
1 changed files with 2 additions and 2 deletions

View File

@ -236,10 +236,10 @@ class ResourceConfigForm extends ConfigForm
'livestatus' => 'Livestatus',
'ssh' => $this->translate('SSH Identity'),
);
if ($resourceType === 'ldap' || Platform::extensionLoaded('ldap')) {
if ($resourceType === 'ldap' || Platform::hasLdapSupport()) {
$resourceTypes['ldap'] = 'LDAP';
}
if ($resourceType === 'db' || Platform::hasMysqlSupport() || Platform::hasPostgresqlSupport()) {
if ($resourceType === 'db' || Platform::hasDatabaseSupport()) {
$resourceTypes['db'] = $this->translate('SQL Database');
}