projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f6a46
)
Include longdesc in search
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 11 Jun 2009 04:58:56 +0000
(
04:58
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 11 Jun 2009 04:58:56 +0000
(
04:58
+0000)
webmin-search-lib.pl
patch
|
blob
|
history
diff --git
a/webmin-search-lib.pl
b/webmin-search-lib.pl
index
6d5e704
..
3e98163
100644
(file)
--- a/
webmin-search-lib.pl
+++ b/
webmin-search-lib.pl
@@
-44,6
+44,14
@@
foreach my $m (@mods) {
'link' => $m->{'dir'}.'/',
'text' => $m->{'desc'} });
}
+ elsif ($m->{'longdesc'} =~ /\Q$re\E/i) {
+ # Module long description match
+ push(@rv, { 'mod' => $m,
+ 'rank' => 9.5,
+ 'type' => 'mod',
+ 'link' => $m->{'dir'}.'/',
+ 'text' => $m->{'longdesc'} });
+ }
elsif ($m->{'dir'} =~ /\Q$re\E/i) {
# Module directory match
push(@rv, { 'mod' => $m,