summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Smokeping.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 98ad8d1..63d2905 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -645,11 +645,13 @@ sub target_menu($$$$;$){
$host = $tree->{$key}{host};
$menuextra = $tree->{$key}{menuextra};
next if $tree->{$key}{hide} and $tree->{$key}{hide} eq 'yes';
- };
+ }
+
# no menuextra for multihost
if (not $host or $host =~ m|^/|){
$menuextra = undef;
}
+
my $class = 'menuitem';
if ($key eq $current ){
if ( @$open ) {
@@ -659,7 +661,7 @@ sub target_menu($$$$;$){
}
};
if ($menuextra){
- $menuextra =~ s/{HOST}/$host/g;
+ $menuextra =~ s/{HOST}/#$host/g;
$menuextra =~ s/{CLASS}/$class/g;
$menuextra = ' '.$menuextra;
} else {