From 72668cdfbe468002fe591ccdcd1fde90d15f650d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 May 2026 12:59:06 +0000 Subject: [PATCH] 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> --- modules/billing/docs.php | 2 +- modules/steam_workshop/agent_update_workshop.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/billing/docs.php b/modules/billing/docs.php index e93301d1..f8b132b4 100644 --- a/modules/billing/docs.php +++ b/modules/billing/docs.php @@ -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 diff --git a/modules/steam_workshop/agent_update_workshop.php b/modules/steam_workshop/agent_update_workshop.php index 4c97f5cd..5ac6b86e 100644 --- a/modules/steam_workshop/agent_update_workshop.php +++ b/modules/steam_workshop/agent_update_workshop.php @@ -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"); } }