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:
@@ -613,7 +613,11 @@ sub cfgDB_MigrationImport() {
|
|||||||
@def = _cfgDB_findDef('TYPE=holiday','NAME');
|
@def = _cfgDB_findDef('TYPE=holiday','NAME');
|
||||||
foreach $filename (@def) {
|
foreach $filename (@def) {
|
||||||
next unless $filename;
|
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
|
# import uniqueID file
|
||||||
|
|||||||
Reference in New Issue
Block a user