2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

55_GDS.pm: move AddExtension from Initialize to Define

git-svn-id: https://svn.fhem.de/fhem/trunk@7874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-04 21:47:46 +00:00
parent 63c602e311
commit ef74977829

View File

@ -68,8 +68,6 @@ sub GDS_Initialize($) {
$tempDir = "c:\\temp\\" if($^O eq "MSWin32");
GDS_addExtension("GDS_CGI","gds","GDS Files");
fillMappingTables($hash);
initDropdownLists($hash);
@ -106,6 +104,8 @@ sub GDS_Define($$$) {
Log3($name, 4, "GDS $name: created");
Log3($name, 4, "GDS $name: tempDir=".$tempDir);
GDS_addExtension("GDS_CGI","gds","GDS Files");
fillMappingTables($hash);
initDropdownLists($hash);
@ -398,6 +398,7 @@ sub GDS_addExtension($$$) {
my ($func,$link,$friendlyname)= @_;
my $url = "/" . $link;
Log3(undef,4,"Registering gds webservice in FWEXT";
$data{FWEXT}{$url}{FUNC} = $func;
$data{FWEXT}{$url}{LINK} = "+$link";
$data{FWEXT}{$url}{NAME} = $friendlyname;