mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
holiday: get argument fixes for FHEMWEB detail view
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8015566ce7
commit
b2ed5065a1
@ -196,6 +196,7 @@ holiday_Get($@)
|
|||||||
{
|
{
|
||||||
my ($hash, @a) = @_;
|
my ($hash, @a) = @_;
|
||||||
|
|
||||||
|
shift(@a) if($a[1] && $a[1] eq "MM-DD");
|
||||||
return "argument is missing" if(int(@a) != 2);
|
return "argument is missing" if(int(@a) != 2);
|
||||||
my $arg;
|
my $arg;
|
||||||
|
|
||||||
@ -211,7 +212,7 @@ holiday_Get($@)
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
return "unknown argument $a[1], ".
|
return "unknown argument $a[1], ".
|
||||||
"choose one of yesterday today tomorrow MM-DD";
|
"choose one of yesterday:noArg today:noArg tomorrow:noArg MM-DD";
|
||||||
|
|
||||||
}
|
}
|
||||||
return holiday_refresh($hash->{NAME}, $arg);
|
return holiday_refresh($hash->{NAME}, $arg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user