mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
Implement proper update process
If the version in the settings table mismatches the code version, then we return a 503 error for all requests coming through index.php and api.php, while admin.php serves up a form prompting for the database password which will run outstanding migrations.
This commit is contained in:
@@ -83,7 +83,7 @@ $(function() {
|
||||
window.location.reload();
|
||||
})
|
||||
.fail(function(data) {
|
||||
$('#error').show().text('Something went wrong:\n\n' + data.responseJSON.error);
|
||||
$('#error').show().text('Something went wrong:\n\n' + data.responseText);
|
||||
|
||||
$button.prop('disabled', false).text('Install Flarum');
|
||||
});
|
||||
|
Reference in New Issue
Block a user