mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
92_FileLog.pm:fix text link in a corner case (Forum #125621)
git-svn-id: https://svn.fhem.de/fhem/trunk@25533 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
af544b4024
commit
01408639ad
@ -667,9 +667,12 @@ FileLog_logWrapper($)
|
||||
if(defined($type) && $type eq "text") {
|
||||
$defs{$d}{logfile} =~ m,^(.*)/([^/]*)$,; # Dir and File
|
||||
my $path = "$1/$file";
|
||||
$path =~ s/%L/$attr{global}{logdir}/g
|
||||
if($path =~ m/%/ && $attr{global}{logdir});
|
||||
$path = AttrVal($d,"archivedir","") . "/$file" if(!-f $path);
|
||||
my @t = localtime(gettimeofday());
|
||||
$path = ResolveDateWildcards($path, @t);
|
||||
if(!-f $path) {
|
||||
$path = AttrVal($d,"archivedir","") . "/$file";
|
||||
$path = ResolveDateWildcards($path, @t);
|
||||
}
|
||||
|
||||
FW_addContent();
|
||||
FW_pO "<div class=\"tiny\">" if($FW_ss);
|
||||
|
Loading…
Reference in New Issue
Block a user