From 504d2926a4c07097d8f3e7ce246eb36fb369a5f4 Mon Sep 17 00:00:00 2001 From: Prophet731 Date: Thu, 19 Mar 2026 14:15:49 -0500 Subject: [PATCH] fix: use unix timestamp for cache busting, generic server icon for Other category - Replace hardcoded date version strings with dynamic timestamps: overview.tpl uses {$smarty.now}, hooks.php uses time(), AdminHTML uses $cacheV = time() in heredoc - Other category gets a gray server/terminal SVG icon instead of falling through to the OS-specific letter badge Co-Authored-By: Claude Opus 4.6 (1M context) --- modules/servers/VirtFusionDirect/hooks.php | 7 +++++-- modules/servers/VirtFusionDirect/lib/AdminHTML.php | 5 +++-- modules/servers/VirtFusionDirect/templates/js/module.js | 2 ++ modules/servers/VirtFusionDirect/templates/overview.tpl | 4 ++-- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/servers/VirtFusionDirect/hooks.php b/modules/servers/VirtFusionDirect/hooks.php index c4a660f..933be2a 100644 --- a/modules/servers/VirtFusionDirect/hooks.php +++ b/modules/servers/VirtFusionDirect/hooks.php @@ -135,8 +135,8 @@ add_hook('ClientAreaFooterOutput', 1, function ($vars) { $systemUrl = Database::getSystemUrl(); return " - - + + + +
diff --git a/modules/servers/VirtFusionDirect/templates/js/module.js b/modules/servers/VirtFusionDirect/templates/js/module.js index d7553bf..b144642 100644 --- a/modules/servers/VirtFusionDirect/templates/js/module.js +++ b/modules/servers/VirtFusionDirect/templates/js/module.js @@ -344,6 +344,8 @@ function vfRenderOsGallery(container, data, hiddenInput) { $(this).replaceWith($('').text((category.name || "?")[0].toUpperCase())); }); iconSpan.append(catImg); + } else if (category.name === "Other") { + iconSpan.css("background", "#6c757d").html(''); } else { iconSpan.css("background", brandColor).text((category.name || "?")[0].toUpperCase()); } diff --git a/modules/servers/VirtFusionDirect/templates/overview.tpl b/modules/servers/VirtFusionDirect/templates/overview.tpl index 8ddcb2e..3bcfb00 100644 --- a/modules/servers/VirtFusionDirect/templates/overview.tpl +++ b/modules/servers/VirtFusionDirect/templates/overview.tpl @@ -1,5 +1,5 @@ - - + + {if $serviceStatus eq 'Active'}