UNDEFINED changes
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@519 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -21,10 +21,11 @@ weblink_Define($$)
|
||||
{
|
||||
my ($hash, $def) = @_;
|
||||
my ($type, $name, $wltype, $link) = split("[ \t]+", $def, 4);
|
||||
my %thash = ( link=>1, fileplot=>1 );
|
||||
my %thash = ( link=>1, fileplot=>1, image=>1 );
|
||||
|
||||
if(!$link || !$thash{$wltype}) {
|
||||
return "Usage: define <name> weblink [" . join("|",sort keys %thash) . "] <httplink>";
|
||||
return "Usage: define <name> weblink [" .
|
||||
join("|",sort keys %thash) . "] <arg>";
|
||||
}
|
||||
$hash->{WLTYPE} = $wltype;
|
||||
$hash->{LINK} = $link;
|
||||
|
||||
Reference in New Issue
Block a user