about summary refs log tree commit homepage
path: root/lib/PublicInbox/ExtMsg.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/ExtMsg.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/ExtMsg.pm')
-rw-r--r--lib/PublicInbox/ExtMsg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm
index 0f3e392d..549e4495 100644
--- a/lib/PublicInbox/ExtMsg.pm
+++ b/lib/PublicInbox/ExtMsg.pm
@@ -8,7 +8,7 @@
 package PublicInbox::ExtMsg;
 use strict;
 use warnings;
-use PublicInbox::Hval qw/ascii_html/;
+use PublicInbox::Hval qw(ascii_html prurl);
 use PublicInbox::MID qw/mid2path/;
 use PublicInbox::WwwStream;
 our $MIN_PARTIAL_LEN = 16;
@@ -172,7 +172,7 @@ sub ext_urls {
                 my $env = $ctx->{env};
                 my $e = "\nPerhaps try an external site:\n\n";
                 foreach my $url (@EXT_URL) {
-                        my $u = PublicInbox::Hval::prurl($env, $url);
+                        my $u = prurl($env, $url);
                         my $r = sprintf($u, $href);
                         my $t = sprintf($u, $html);
                         $e .= qq{<a\nhref="$r">$t</a>\n};