Skip to content

Commit

Permalink
Update output
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhartless committed Jun 30, 2016
1 parent 8d71238 commit 57df5f4
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,13 @@
// Apply critical migrations
apply_critical_migrations();
$nextTask = 'finish';
$redirect = true;
break;

$status['complete'] = true;
$status['stepStatus'] = 'Success';
$status['nextStep'] = 'Processing Database Updates';
$status['nextStepStatus'] = 'In Progress';
$status['updateState']['cacheComplete'] = true;
case 'clearCache':
clear_mautic_cache();
$nextTask = 'buildCache';
$redirect = true;
break;

case 'applyMigrations':
Expand All @@ -162,7 +163,16 @@

case 'finish':
clear_mautic_cache();
html_body("<h1 class='text-center text-success'>Success! Be sure to remove this script.</h1>");

if (!empty($standalone)) {
html_body("<div class='well'><h3 class='text-center'>Success!</h3><h4 class='text-danger text-center'>Remove this script!</h4></div>");
} else {
$status['complete'] = true;
$status['stepStatus'] = 'Success';
$status['nextStep'] = 'Processing Database Updates';
$status['nextStepStatus'] = 'In Progress';
$status['updateState']['cacheComplete'] = true;
}
break;

default:
Expand Down

0 comments on commit 57df5f4

Please sign in to comment.