about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-12 01:23:32 +0000
committerEric Wong <e@80x24.org>2015-09-12 01:24:11 +0000
commit6ffa9c19e710ee2ece98a987477e9c5baaca13cd (patch)
treeedebb095b8a20c586964723f9cabddde7c8f5cf1 /lib/PublicInbox/WWW.pm
parent3fcca93c1391c570e71a81f9467b95d7fcd1910e (diff)
downloadpublic-inbox-6ffa9c19e710ee2ece98a987477e9c5baaca13cd.tar.gz
This hopefully makes it easy to perform queries to display
an entire thread.  Raise the limit in the threaded view to
display more results and hopefully improve the output of
thread display.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r--lib/PublicInbox/WWW.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm
index 508abf73..58a4256a 100644
--- a/lib/PublicInbox/WWW.pm
+++ b/lib/PublicInbox/WWW.pm
@@ -130,11 +130,10 @@ sub get_index {
         my ($ctx) = @_;
         require PublicInbox::Feed;
         my $srch = searcher($ctx);
-        my $q = $ctx->{cgi}->param('q');
         footer($ctx);
-        if (defined $q) {
+        if (defined $ctx->{cgi}->param('q')) {
                 require PublicInbox::SearchView;
-                PublicInbox::SearchView::sres_top_html($ctx, $q);
+                PublicInbox::SearchView::sres_top_html($ctx);
         } else {
                 PublicInbox::Feed::generate_html_index($ctx);
         }