log package deletion

This commit is contained in:
Jamie Cameron
2025-04-08 20:19:24 -07:00
parent f30275b49e
commit 05f4b8ff96
3 changed files with 8 additions and 1 deletions

View File

@ -56,6 +56,7 @@ else {
print $text{'dpkgs_done'},"<p>\n";
}
}
&webmin_log("delete", "pkgs", scalar(@delpkgs));
}
&ui_print_footer("list_pkgs.cgi", $text{'pkgs_return'});

View File

@ -206,6 +206,7 @@ log_errors=Changed error logging in $1
log_misc=Changed other settings in $1
log_mods=Updated enabled modules in $1
log_imod=Installed PHP module $2 in $1
log_delete_dpkgs=Uninstalled $1 PHP packages
acl_global=Can edit global PHP configuration?
acl_anyfile=Can edit any file as a PHP configuration?

View File

@ -12,6 +12,11 @@ if ($action eq "imod") {
return &text('log_'.$action, "<tt>".&html_escape($object)."</tt>",
"<tt>".&html_escape($p->{'mod'})."</tt>");
}
return &text('log_'.$action, "<tt>".&html_escape($object)."</tt>");
elsif ($type eq "pkgs") {
return &text('log_'.$action.'_pkgs', $object);
}
else {
return &text('log_'.$action, "<tt>".&html_escape($object)."</tt>");
}
}