Skip to content

Commit

Permalink
Upgrade unattended: cosmetic changes
Browse files Browse the repository at this point in the history
- print upgrade step number (to align with install.php's behavior)
- remove an extra space before upgrade step status
  • Loading branch information
dregad committed Mar 14, 2015
1 parent d04d51a commit 45e4692
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions admin/upgrade_unattended.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ function print_test_result( $p_result, $p_hard_fail = true, $p_message = '' ) {
if( BAD == $p_result ) {
if( $p_hard_fail ) {
$g_failed = true;
echo ' - ERROR: ';
echo '- ERROR: ';
} else {
echo ' - WARNING: ';
echo '- WARNING: ';
}
if( '' != $p_message ) {
echo $p_message;
}
}

if( GOOD == $p_result ) {
echo ' - GOOD';
echo '- GOOD';
}
echo "\n";
}
Expand Down Expand Up @@ -162,7 +162,7 @@ function print_test_result( $p_result, $p_hard_fail = true, $p_message = '' ) {
}
}

echo 'Schema ' . $g_upgrade[$i][0] . ' ( ' . $t_target . ' ) ';
echo 'Schema step ' . $i . ': ' . $g_upgrade[$i][0] . ' ( ' . $t_target . ' ) ';
if( $t_sql ) {
$t_ret = $t_dict->ExecuteSQLArray( $t_sqlarray, false );
} else {
Expand Down

0 comments on commit 45e4692

Please sign in to comment.