handle(); return; } echo '

' . get_lang('steam_workshop') . '

'; // New DB-driven actions $newActions = ['index', 'mods']; $newPostActions = ['install', 'remove', 'toggle', 'load_order', 'sync']; if (in_array($action, $newActions, true) || in_array($postAction, $newPostActions, true)) { $controller = new WorkshopModController($db); $controller->handle(); return; } // Legacy controller for old Workshop page actions $controller = new SteamWorkshopController($db); $controller->handle(); }