From 4d02ed7d60ecff963d3026187a0357e359fd2981 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jul 2016 07:56:36 +0000 Subject: www: use PSGI env directly More work on on the Plack::Request/CGI.pm removal front, No need to access the PSGI env through an extra hash lookup. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index ce1eff1e..15bb8232 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -86,7 +86,7 @@ sub mset_summary { sub err_txt { my ($ctx, $err) = @_; my $u = '//xapian.org/docs/queryparser.html'; - $u = PublicInbox::Hval::prurl($ctx->{cgi}->{env}, $u); + $u = PublicInbox::Hval::prurl($ctx->{env}, $u); $err =~ s/^\s*Exception:\s*//; # bad word to show users :P $err = ascii_html($err); "\nBad query: $err\n" . -- cgit v1.2.3-24-ge0c7