2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

98_fheminfo.pm: bugfix - use correct filename variable

git-svn-id: https://svn.fhem.de/fhem/trunk@14625 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-07-02 12:21:10 +00:00
parent 89cd84e750
commit 13a8453114

View File

@ -227,7 +227,7 @@ sub _fi2_Div($$) {
sub _fi2_findRev {
my $cf = 'controls_fhem.txt';
my $filename = (-e "./$cf") ? "./$cf" : AttrVal("global","modpath",".")."/FHEM/$cf";
my ($err, @content) = FileRead({FileName => $cf, ForceType => "file"});
my ($err, @content) = FileRead({FileName => $filename, ForceType => "file"});
return if $err;
my (undef,$rev) = split (/ /,$content[0]);
return $rev;