|
|
@@ -575,6 +575,14 @@ function backendtpl_with_webdomains() {
|
|
|
if (!empty($domain_details["BACKEND"])) {
|
|
|
$backend = $domain_details["BACKEND"];
|
|
|
$backend_list[$backend][$user][] = $domain;
|
|
|
+
|
|
|
+ // Also count custom backend template names like YOURNAME-PHP-8_4 under PHP-8_4
|
|
|
+ if (preg_match('/(PHP-\d+_\d+)$/', $backend, $m)) {
|
|
|
+ // Avoid duplicates when backend already is the base template
|
|
|
+ if ($backend !== $m[1]) {
|
|
|
+ $backend_list[$m[1]][$user][] = $domain;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|