2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

98_SVG.pm: fix touchpad SVG problems (Forum #32530)

git-svn-id: https://svn.fhem.de/fhem/trunk@7818 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-01 14:28:24 +00:00
parent 2d52e733f3
commit 5c69d9ea65

View File

@ -1167,8 +1167,8 @@ SVG_openFile($$$)
my ($dir, $prf, $fName) = @_;
my $baseStyle = $prf;
$baseStyle =~ s/(touchpad|smallscreen)//;
if(open(FH, "$dir/${prf}$fName") ||
open(FH, "$dir/${baseStyle}$fName") ||
if(open(FH, "$dir/${baseStyle}$fName") || # Forum #32530
open(FH, "$dir/${prf}$fName") ||
open(FH, "$dir/$fName")) {
return 1;
}