From 112c54ffbbfd65d2d76ce2526b77407f7fb067b8 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 28 Feb 2008 17:59:02 -0500
Subject: [PATCH] Fix imap host selection in install script
---
installer/config.php | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/installer/config.php b/installer/config.php
index 97052c8..9d22c28 100644
--- a/installer/config.php
+++ b/installer/config.php
@@ -250,14 +250,10 @@
<div id="defaulthostlist">
<?php
-$default_hosts = (array)$RCI->getprop('default_host');
$text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30));
$i = 0;
-foreach ($default_hosts as $key => $name) {
- if (empty($name))
- continue;
- $host = is_numeric($key) ? $name : $key;
+foreach ($RCI->get_hostlist() as $host) {
echo '<div id="defaulthostentry'.$i.'">' . $text_imaphost->show($host);
if ($i++ > 0)
echo '<a href="#" onclick="removehostfield(this.parentNode);return false" class="removelink" title="Remove this entry">remove</a>';
--
Gitblit v1.9.1