From 47d9b14d07bc4a959a87647fd473a319554c3a0c Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 7 Dec 2014 11:33:05 +0000 Subject: [PATCH] 01_FHEMWEB.pm: make the module more reload-ready (Forum #30065) git-svn-id: https://svn.fhem.de/fhem/trunk@7154 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 56548b9db..34af4278b 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -122,7 +122,7 @@ FHEMWEB_Initialize($) $hash->{AttrFn} = "FW_Attr"; $hash->{DefFn} = "FW_Define"; $hash->{UndefFn} = "FW_Undef"; - $hash->{NotifyFn}= "FW_SecurityCheck"; + $hash->{NotifyFn}= ($init_done ? "FW_Notify" : "FW_SecurityCheck"); $hash->{ActivateInformFn} = "FW_ActivateInform"; no warnings 'qw'; my @attrList = qw( @@ -190,6 +190,12 @@ FHEMWEB_Initialize($) $data{webCmdFn}{noArg} = "FW_noArgFn"; $data{webCmdFn}{textField} = "FW_textFieldFn"; $data{webCmdFn}{"~dropdown"}= "FW_dropdownFn"; # Should be the last + + if($init_done) { # reload workaround + foreach my $pe ("fhemSVG", "openautomation", "default") { + FW_readIcons($pe); + } + } } #####################################