2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

configDB.pm: prepare for holiday-filename-compatibility

git-svn-id: https://svn.fhem.de/fhem/trunk@14296 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-05-15 18:56:49 +00:00
parent af77ed1f1a
commit 8f9f0441a4

View File

@ -613,7 +613,11 @@ sub cfgDB_MigrationImport() {
@def = _cfgDB_findDef('TYPE=holiday','NAME');
foreach $filename (@def) {
next unless $filename;
push @files, "$modpath/FHEM/".$filename.".holiday";
if(defined($defs{$filename}{HOLIDAYFILE})) {
push @files, $defs{$filename}{HOLIDAYFILE};
} else {
push @files, "$modpath/FHEM/".$filename.".holiday";
}
}
# import uniqueID file