Some more bugfixes for the install script

release-0.6
thomascube 17 years ago
parent 512d8c2b02
commit 1c4e5dd4d2

@ -31,7 +31,7 @@ $source_urls = array(
'Mail_mime' => 'http://pear.php.net/package/Mail_mime'
);
echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 2 : 3) . '" />';
echo '<input type="hidden" name="_step" value="' . ($RCI->configured ? 3 : 2) . '" />';
?>
<h3>Checking PHP version</h3>

@ -251,9 +251,13 @@ echo $select_dbba->show($RCI->getprop('db_backend'));
<?php
$text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30));
$default_hosts = $RCI->get_hostlist();
if (empty($default_hosts))
$default_hosts = array('');
$i = 0;
foreach ($RCI->get_hostlist() as $host) {
foreach ($default_hosts 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>';

@ -79,7 +79,7 @@ class rcube_install
*/
function _load_config($suffix)
{
include '../config/main.inc' . $suffix;
@include '../config/main.inc' . $suffix;
if (is_array($rcmail_config)) {
$this->config += $rcmail_config;
}

Loading…
Cancel
Save