mirror of
https://github.com/darold/sendmailanalyzer.git
synced 2026-05-15 22:02:32 -06:00
Fix missing translation and empty links in main menu, Perl since 5.26 does not include current directory . into the @INC array. Thanks to Enrico Morelli for the report.
This commit is contained in:
parent
533a03467e
commit
b008420421
1 changed files with 6 additions and 2 deletions
|
|
@ -233,13 +233,17 @@ if (!-e $CONFIG{LANG}) {
|
|||
print $CGI->end_html() if (!$DOWNLOAD);
|
||||
die "FATAL: Language file is not readable, $CONFIG{LANG}\n";
|
||||
} else {
|
||||
do "$CONFIG{LANG}";
|
||||
my $file = $CONFIG{LANG};
|
||||
$file = './' . $CONFIG{LANG} if ($CONFIG{LANG} !~ /^\//);
|
||||
do "$file";
|
||||
}
|
||||
$CURDATE ||= &get_curdate();
|
||||
|
||||
# Check if smtp error code file is readable
|
||||
if (-e $CONFIG{ERROR_CODE}) {
|
||||
do "$CONFIG{ERROR_CODE}";
|
||||
my $file = $CONFIG{ERROR_CODE};
|
||||
$file = './' . $CONFIG{ERROR_CODE} if ($CONFIG{ERROR_CODE} !~ /^\//);
|
||||
do "$file";
|
||||
}
|
||||
|
||||
# Print global header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue