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 111aace66d
commit d8e3cfcef3

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;
}