mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_help.pm: #76868
git-svn-id: https://svn.fhem.de/fhem/trunk@15223 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0e4273f1ef
commit
29e0487052
@ -184,6 +184,15 @@ sub cref_search {
|
|||||||
$skip = 1;
|
$skip = 1;
|
||||||
} elsif(!$skip) {
|
} elsif(!$skip) {
|
||||||
$output .= "$l\n";
|
$output .= "$l\n";
|
||||||
|
if($l =~ m,INSERT_DOC_FROM: ([^ ]+)/([^ /]+) ,) {
|
||||||
|
my ($dir, $re) = ($1, $2);
|
||||||
|
if(opendir(DH, $dir)) {
|
||||||
|
foreach my $file (grep { m/^$2$/ } readdir(DH)) {
|
||||||
|
$output .= cref_search("$dir/$file", $lang);
|
||||||
|
}
|
||||||
|
closedir(DH);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user