The exception added in commit
v1.9-254-g560ad76852 (2017-05-29)
[common: html page headers on plp errors] seems unneeded (now?);
maybe for different server/version/environment setup?
$PLP::ERROR = sub {
my ($text, $html) = @_;
warn $text;
$PLP::ERROR = sub {
my ($text, $html) = @_;
warn $text;
- unless ($PLP::sentheaders and $PLP::sentheaders->[0] !~ m{/PLP\.pm$}) {
+ unless ($PLP::sentheaders) {
Html({nocache => 1});
say '<h1>Page unavailable</h1>';
}
Html({nocache => 1});
say '<h1>Page unavailable</h1>';
}