92_FileLog.pm: fix strange CURRENT case (Forum #38055)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8738 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -557,7 +557,7 @@ FileLog_Get($@)
|
|||||||
$linf =~ s/%m/$m/g;
|
$linf =~ s/%m/$m/g;
|
||||||
$linf =~ s/%d/$d/g;
|
$linf =~ s/%d/$d/g;
|
||||||
$linf =~ s/%L/$attr{global}{logdir}/g if($attr{global}{logdir});
|
$linf =~ s/%L/$attr{global}{logdir}/g if($attr{global}{logdir});
|
||||||
$linf = $hash->{currentlogfile} if($linf =~ m/%/);
|
$linf = $hash->{currentlogfile} if($linf =~ m/%/ || ! -f $linf);
|
||||||
} else {
|
} else {
|
||||||
$linf = $hash->{currentlogfile};
|
$linf = $hash->{currentlogfile};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user