]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NewsWWW.pm
cleanup: use '$ibx' consistently when referring to Inbox refs
[public-inbox.git] / lib / PublicInbox / NewsWWW.pm
index d7fcb0daec1d2d35161c82e15333dc09e4daed23..8626cf96eaba44acee92a10a2aa3d84fcb7ab788 100644 (file)
@@ -44,11 +44,11 @@ sub call {
        my (undef, @parts) = split(m!/!, $env->{PATH_INFO});
        my ($ng, $article) = @parts;
        my $pi_config = $self->{pi_config};
-       if (my $inbox = $pi_config->lookup_newsgroup($ng)) {
-               my $url = PublicInbox::Hval::prurl($env, $inbox->{url});
+       if (my $ibx = $pi_config->lookup_newsgroup($ng)) {
+               my $url = PublicInbox::Hval::prurl($env, $ibx->{url});
                my $code = 301;
                if (defined $article && $article =~ /\A\d+\z/) {
-                       my $mid = eval { $inbox->mm->mid_for($article) };
+                       my $mid = eval { $ibx->mm->mid_for($article) };
                        if (defined $mid) {
                                # article IDs are not stable across clones,
                                # do not encourage caching/bookmarking them