summaryrefslogtreecommitdiff
path: root/roundcubemail/installer/index.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-27 08:11:17 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-27 08:11:17 +0000
commitca4d027a2f3451d1907ff9ca0645bef06641bb3e (patch)
treea0f04e8c587517497a3db68c7adebc71d3f47fa4 /roundcubemail/installer/index.php
parent2a29c0de621e53c9cd9af3c8f72d3fe618de15a8 (diff)
Allow to skip the config step if config files already exist
git-svn-id: https://svn.roundcube.net/trunk@1144 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/index.php')
-rw-r--r--roundcubemail/installer/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/installer/index.php b/roundcubemail/installer/index.php
index aab406e98..a5225eb54 100644
--- a/roundcubemail/installer/index.php
+++ b/roundcubemail/installer/index.php
@@ -34,7 +34,8 @@
require_once 'rcube_install.php';
$RCI = rcube_install::get_instance();
-
+ $RCI->load_config();
+
?>
<ol id="progress">
@@ -42,7 +43,7 @@
foreach (array('Check environment', 'Create config', 'Test config') as $i => $item) {
$j = $i + 1;
- $link = $RCI->step > $j ? '<a href="./index.php?_step='.$j.'">' . Q($item) . '</a>' : Q($item);
+ $link = ($RCI->step >= $j || $RCI->configured) ? '<a href="./index.php?_step='.$j.'">' . Q($item) . '</a>' : Q($item);
printf('<li class="step%d%s">%s</li>', $j+1, $RCI->step > $j ? ' passed' : ($RCI->step == $j ? ' current' : ''), $link);
}
?>