Polish readability issues from validation feedback
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/b16096ca-4ef7-4bb0-80e8-658767561478 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
33cbb13d1b
commit
72a06383e0
3 changed files with 12 additions and 8 deletions
|
|
@ -62,7 +62,10 @@ function exec_ogp_module()
|
|||
$overwrite = isset($_POST['overwrite_existing']) && $_POST['overwrite_existing'] === '1';
|
||||
$updated = sw_apply_detected_profile_defaults($db, $profile, $detected, $overwrite);
|
||||
if ($updated > 0) {
|
||||
sw_success("Applied $updated detected default value(s)." . ($overwrite ? ' Existing values were allowed to be overwritten.' : ' Existing non-empty values were kept.'));
|
||||
$overwriteMessage = $overwrite
|
||||
? ' Existing values were allowed to be overwritten.'
|
||||
: ' Existing non-empty values were kept.';
|
||||
sw_success("Applied $updated detected default value(s)." . $overwriteMessage);
|
||||
} else {
|
||||
sw_success('No profile values needed updating based on current overwrite setting.');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue