From e6a3f3907185c8dd1e5614f2e3d57a9a5110fce9 Mon Sep 17 00:00:00 2001 From: betateilchen Date: Sat, 26 Apr 2014 08:34:44 +0000 Subject: [PATCH] configDB - modified: call GlobalAttr() on startup git-svn-id: https://svn.fhem.de/fhem/trunk@5661 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 1566714df..659d439e1 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -79,6 +79,7 @@ sub AnalyzeCommandChain($$;$); sub AttrVal($$$); sub Debug($); sub Log3($$$); +sub GlobalAttr($$$$); ################################################## # Forward declarations inside this library @@ -191,6 +192,7 @@ sub cfgDB_GlobalAttr { $line[3] =~ s/#.*//; $line[3] =~ s/ .*$//; $attr{global}{$line[2]} = $line[3]; + GlobalAttr("set", "global", $line[2], $line[3]); } $sth = $fhem_dbh->prepare( "SELECT * FROM fhemconfig WHERE DEVICE = 'configdb' and VERSIONUUID = '$uuid'" ); @@ -201,6 +203,7 @@ sub cfgDB_GlobalAttr { $line[3] =~ s/#.*//; $line[3] =~ s/ .*$//; $attr{configdb}{$line[2]} = $line[3]; + GlobalAttr("set", "global", $line[2], $line[3]); } $fhem_dbh->disconnect();