Fix case where error is not called in a module

This commit is contained in:
Jamie Cameron
2025-04-17 22:08:53 -07:00
parent 268b72917d
commit d8513dbd9e

View File

@@ -1830,7 +1830,7 @@ elsif ($ENV{'REQUEST_URI'} =~ /json-error=1/) {
print_json(\%jerror);
}
else {
&header($text{'error'}, "", undef, 0, $module_name ? 0 : 1);
&header($text{'error'}, "", undef, 0, &get_module_name() ? 0 : 1);
my $hh = $miniserv::page_capture ? " captured" : "";
my $err_style = &read_file_contents("$root_directory/unauthenticated/errors.css");
if ($err_style) {