Apply validation feedback for docs title and workshop migration notes

Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/1575c81b-f8a7-433a-8f3b-e068c0992c18

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-08 12:57:59 +00:00 committed by GitHub
parent 93677ea5b3
commit 079da1990e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View file

@ -353,11 +353,12 @@ function sw_agent_steamcmd_download(array $mod, array $profile, array $tpl_vars,
}
// Validate that steamcmd exists
if (!$dry_run && !is_file($steamcmd)) {
return array('ok' => false, 'error' => "SteamCMD not found: $steamcmd");
}
if (!$dry_run && !is_executable($steamcmd)) {
return array('ok' => false, 'error' => "SteamCMD is not executable: $steamcmd");
if (!$dry_run) {
if (!is_file($steamcmd)) {
return array('ok' => false, 'error' => "SteamCMD not found: $steamcmd");
} elseif (!is_executable($steamcmd)) {
return array('ok' => false, 'error' => "SteamCMD is not executable: $steamcmd");
}
}
// Build argument list; escape each argument individually.

View file

@ -173,6 +173,8 @@ $install_queries[5] = array(
ELSE `schedule_interval`
END"
);
// The simplified workflow intentionally hard-disables these legacy fields
// for every row so old unsupported behaviors cannot be re-enabled.
$ok = $ok && (bool)$db->query(
"UPDATE " . sw_module_table('steam_workshop_server_settings') . "
SET `hot_load` = 'disabled', `warning_minutes` = 0"