Finalize docs title consistency and steamcmd executable validation
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:
parent
079da1990e
commit
72668cdfbe
2 changed files with 2 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ $docsDir = __DIR__ . '/docs';
|
|||
$action = $_GET['action'] ?? 'list';
|
||||
$doc = $_GET['doc'] ?? '';
|
||||
$docsPagePath = '/docs.php';
|
||||
$pageTitle = $action === 'view' ? 'Documentation' : 'Documentation - GSP';
|
||||
$pageTitle = 'Documentation - GSP';
|
||||
|
||||
/**
|
||||
* Get all documentation folders with their metadata
|
||||
|
|
|
|||
|
|
@ -354,9 +354,7 @@ function sw_agent_steamcmd_download(array $mod, array $profile, array $tpl_vars,
|
|||
|
||||
// Validate that steamcmd exists
|
||||
if (!$dry_run) {
|
||||
if (!is_file($steamcmd)) {
|
||||
return array('ok' => false, 'error' => "SteamCMD not found: $steamcmd");
|
||||
} elseif (!is_executable($steamcmd)) {
|
||||
if (!is_executable($steamcmd)) {
|
||||
return array('ok' => false, 'error' => "SteamCMD is not executable: $steamcmd");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue