55_GDS.pm: move AddExtension from Initialize to Define

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7874 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2015-02-04 21:47:46 +00:00
parent 445c043bea
commit a5714e69de

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;