From 47c95bb4e7812a8b4675a5ebbcd0c844acc5e6d3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 4 May 2026 12:49:21 +0000 Subject: [PATCH] fix: PHP 8.3 string interpolation and remove Steam Workshop from main nav Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/ddf9efe5-279d-4197-98e5-b3fc5b28ea0c Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- modules/cron/shared_cron_functions.php | 8 ++++---- modules/steam_workshop/module.php | 2 +- modules/steam_workshop/monitor_buttons.php | 2 +- modules/steam_workshop/navigation.xml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/cron/shared_cron_functions.php b/modules/cron/shared_cron_functions.php index 2255a274..e41575fa 100644 --- a/modules/cron/shared_cron_functions.php +++ b/modules/cron/shared_cron_functions.php @@ -250,16 +250,16 @@ function updateCronJobsToNewApi() switch ($action) { case "stopServer": - $command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/stop&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1"; + $command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/stop&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1"; break; case "startServer": - $command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/start&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1"; + $command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/start&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1"; break; case "restartServer": - $command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/restart&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}\" --no-check-certificate > /dev/null 2>&1"; + $command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/restart&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}\" --no-check-certificate > /dev/null 2>&1"; break; case "autoUpdateSteamHome": - $command = "wget -qO- \"${panelURL}/ogp_api.php?gamemanager/update&token=${token}&ip=${ip}&port=${port}&mod_key=${mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1"; + $command = "wget -qO- \"{$panelURL}/ogp_api.php?gamemanager/update&token={$token}&ip={$ip}&port={$port}&mod_key={$mod_key}&type=steam\" --no-check-certificate > /dev/null 2>&1"; break; } list($minute,$hour,$dayOfTheMonth,$month,$dayOfTheWeek,$old_command) = explode(" ", $job, 6); diff --git a/modules/steam_workshop/module.php b/modules/steam_workshop/module.php index 715a5cec..8c6228fa 100644 --- a/modules/steam_workshop/module.php +++ b/modules/steam_workshop/module.php @@ -23,7 +23,7 @@ */ // Module general information $module_title = "Steam Workshop"; -$module_version = "2.1"; +$module_version = "2.2"; $db_version = 1; $module_required = TRUE; $module_menus = array(); diff --git a/modules/steam_workshop/monitor_buttons.php b/modules/steam_workshop/monitor_buttons.php index e11bcb7b..5fb337ee 100644 --- a/modules/steam_workshop/monitor_buttons.php +++ b/modules/steam_workshop/monitor_buttons.php @@ -42,7 +42,7 @@ if (isset($server_xml) && isset($server_home['home_id'])) $label = 'Steam Workshop'; } - $href = "?m=steam_workshop&p=main&action=edit&home_id=" . $homeId; + $href = "?m=steam_workshop&p=server_mods&action=edit&home_id=" . $homeId; $module_buttons = array( " diff --git a/modules/steam_workshop/navigation.xml b/modules/steam_workshop/navigation.xml index c35e2855..733084cb 100644 --- a/modules/steam_workshop/navigation.xml +++ b/modules/steam_workshop/navigation.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file