aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin/lxr
diff options
context:
space:
mode:
authorArne Georg Gleditsch <argggh@lxr.linpro.no>2007-11-27 01:01:07 +0100
committerArne Georg Gleditsch <argggh@lxr.linpro.no>2007-11-27 01:01:07 +0100
commit28514e3d8ea1cfdc0e920ee3612738f7731d73fb (patch)
treef152302049291fa59f1029d1533fa0868a7daf60 /cgi-bin/lxr
parenta103e43763ec859782928d74833aca343fdaccea (diff)
Show empty results for specific search.
Diffstat (limited to 'cgi-bin/lxr')
-rwxr-xr-xcgi-bin/lxr2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi-bin/lxr b/cgi-bin/lxr
index f71d061..28d6635 100755
--- a/cgi-bin/lxr
+++ b/cgi-bin/lxr
@@ -357,6 +357,8 @@ sub search {
}
my $html = '';
$template_args{'tree'} = $context->tree;
+ $template_args{'search_type'} = $type if
+ $type =~ /^(search|file|text|code|ident|ambig)$/;
$template->process('search_result.tt2',
\%template_args,
\$html)