[icinga-checkins] icinga.org: icingaweb2/feature/setup-wizard-7163: Make sure that IDO is the default backend type if available

git at icinga.org git at icinga.org
Fri Nov 7 15:35:08 CET 2014


Module: icingaweb2
Branch: feature/setup-wizard-7163
Commit: bb96316a7c7eb570e9161882d3009a6ee5198f3b
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=bb96316a7c7eb570e9161882d3009a6ee5198f3b

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Fri Nov  7 14:47:37 2014 +0100

Make sure that IDO is the default backend type if available

refs #7163
fixes #7604

---

 modules/monitoring/application/forms/Setup/BackendPage.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/monitoring/application/forms/Setup/BackendPage.php b/modules/monitoring/application/forms/Setup/BackendPage.php
index 6cc5c1e..e78023f 100644
--- a/modules/monitoring/application/forms/Setup/BackendPage.php
+++ b/modules/monitoring/application/forms/Setup/BackendPage.php
@@ -39,10 +39,11 @@ class BackendPage extends Form
             )
         );
 
-        $resourceTypes = array('livestatus' => 'Livestatus');
+        $resourceTypes = array();
         if (Platform::extensionLoaded('mysql') || Platform::extensionLoaded('pgsql')) {
             $resourceTypes['ido'] = 'IDO';
         }
+        $resourceTypes['livestatus'] = 'Livestatus';
 
         $this->addElement(
             'select',



More information about the icinga-checkins mailing list