mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
commandref_join.pl: negative tagcount warning will respect noWarnings
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@16425 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4142c46a99
commit
9651ec5b64
@ -178,7 +178,8 @@ generateModuleCommandref($$;$$)
|
|||||||
$tagcount{$tag} +=()= ($l =~ /<$tag>/gi);
|
$tagcount{$tag} +=()= ($l =~ /<$tag>/gi);
|
||||||
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
|
||||||
if($tagcount{$tag} < 0) {
|
if($tagcount{$tag} < 0) {
|
||||||
print "*** $lang $fPath: negative tagcount for $tag, line $line\n";
|
print "*** $lang $fPath: negative tagcount for $tag, line $line\n"
|
||||||
|
if(!$noWarnings);
|
||||||
$tagcount{$tag} = 0;
|
$tagcount{$tag} = 0;
|
||||||
}
|
}
|
||||||
$llwct{$tag} = $line if(!$tagcount{$tag});
|
$llwct{$tag} = $line if(!$tagcount{$tag});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user