Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2021-01-24 10:58:22 +0300
committerAleksander Machniak <alec@alec.pl>2021-01-24 10:58:22 +0300
commit670c0a6df5914d7cfe75c9e801b2d5615cac721a (patch)
tree8fb000b435a919c5ce9eb74ba1b660be490455fb /installer
parent5d2668a260098e70e4666a60c3c71738b8c7ac3d (diff)
Installer: Fix non-working Initialize database and Update buttons (#7847)
Diffstat (limited to 'installer')
-rw-r--r--installer/test.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/installer/test.php b/installer/test.php
index 6ac379ce0..671fe465f 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -171,15 +171,25 @@ if ($db_working) {
$db_read = $DB->query("SELECT count(*) FROM " . $DB->quote_identifier($RCI->config['db_prefix'] . 'users'));
if ($DB->is_error()) {
$RCI->fail('DB Schema', "Database not initialized");
- echo '<p><input type="submit" name="initdb" value="Initialize database" /></p>';
+ echo '<form action="index.php?_step=3" method="post">'
+ . '<p><input type="submit" name="initdb" value="Initialize database" /></p>'
+ . '</form>';
+
$db_working = false;
}
else if ($err = $RCI->db_schema_check($DB, $update = !empty($_POST['updatedb']))) {
$RCI->fail('DB Schema', "Database schema differs");
echo '<ul style="margin:0"><li>' . join("</li>\n<li>", $err) . "</li></ul>";
+
$select = $RCI->versions_select(['name' => 'version']);
$select->add('0.9 or newer', '');
- echo '<p class="suggestion">You should run the update queries to get the schema fixed.<br/><br/>Version to update from: ' . $select->show('') . '&nbsp;<input type="submit" name="updatedb" value="Update" /></p>';
+
+ echo '<form action="index.php?_step=3" method="post">'
+ . '<p class="suggestion">You should run the update queries to get the schema fixed.'
+ . '<br/><br/>Version to update from: ' . $select->show('')
+ . '&nbsp;<input type="submit" name="updatedb" value="Update" /></p>'
+ . '</form>';
+
$db_working = false;
}
else {