about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwStream.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-05 23:23:31 +0000
committerEric Wong <e@yhbt.net>2020-01-06 10:20:37 +0000
commit11eec3365d537b20ade6923eaa5fdd18206d4342 (patch)
tree90e37108bb9b800555f08b32ac248eeabe140373 /lib/PublicInbox/WwwStream.pm
parentac47f1bc4692ec11760017fff706e06a5fa8ebc7 (diff)
downloadpublic-inbox-11eec3365d537b20ade6923eaa5fdd18206d4342.tar.gz
This allows to do some compile-time checking and fills in a
missing "use" in PublicInbox::NewsWWW, allowing it to be used
standalone and independently of PublicInbox::WWW
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r--lib/PublicInbox/WwwStream.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index 0f4f55d0..8f5a6526 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -9,7 +9,7 @@
 package PublicInbox::WwwStream;
 use strict;
 use warnings;
-use PublicInbox::Hval qw(ascii_html);
+use PublicInbox::Hval qw(ascii_html prurl);
 our $TOR_URL = 'https://www.torproject.org/';
 our $CODE_URL = 'https://public-inbox.org/public-inbox.git';
 
@@ -78,7 +78,7 @@ sub _html_top ($) {
 
 sub code_footer ($) {
         my ($env) = @_;
-        my $u = PublicInbox::Hval::prurl($env, $CODE_URL);
+        my $u = prurl($env, $CODE_URL);
         qq(AGPL code for this site: git clone <a\nhref="$u">$u</a>)
 }