mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
contrib/commandref_modular.pl: bugfix
git-svn-id: https://svn.fhem.de/fhem/trunk@12029 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
176af5b306
commit
2a8a6ed81c
@ -72,10 +72,7 @@ for my $lang (@lang) {
|
||||
$modData{$mName}{type}="device" if(!$modData{$mName}{type});
|
||||
delete($modData{$mName}{modLinks});
|
||||
open(FH, "$modDir/$fName") || die("Cant open $modDir/$fName: $!\n");
|
||||
my $ishtml;
|
||||
while(my $l = <FH>) {
|
||||
$ishtml = 1 if($l =~ m/^=begin\s+html/);
|
||||
next if(!$ishtml);
|
||||
$modData{$mName}{type}=$1 if($l =~ m/^=item\s+(helper|command|device)/);
|
||||
$modData{$mName}{$1} =$2 if($l =~ m/^=item\s+(summary[^ ]*)\s(.*)$/);
|
||||
$modData{$mName}{modLinks}{$1} = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user