From 6ea905bfe69ac88ddff742658556e4582f1f85ea Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev <4426533+rostovtsev@users.noreply.github.com> Date: Wed, 14 Nov 2018 14:07:12 +0300 Subject: [PATCH] Add ability to add links to warnings --- webmin/system_info.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webmin/system_info.pl b/webmin/system_info.pl index fc5407c0b..fd20a7fa1 100644 --- a/webmin/system_info.pl +++ b/webmin/system_info.pl @@ -102,6 +102,10 @@ foreach my $a (@ann) { $info->{'type'} = 'warning'; $info->{'level'} = $a->{'level'} || 'info'; $info->{'warning'} = &html_escape($a->{'message'})."
\n"; + for(my $b=0; defined($a->{'link'.$b}); $b++) { + $info->{'warning'} .= &ui_link_button( + $a->{'link'.$b}, $a->{'desc'.$b}, "_new")."\n"; + } $info->{'warning'} .= $hide; } elsif ($a->{'type'} eq 'message') {