]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/openid.pm
Replace shebang paths with the build-time $(PERL).
[git.ikiwiki.info.git] / IkiWiki / Plugin / openid.pm
index e3b9982f2d3bbf4d5185ae7a1b97c850f6cdaa89..3b96e4b8e411c5f29afc25b58e15cdfd9f70121d 100644 (file)
@@ -238,10 +238,10 @@ sub getobj ($$) {
        my $ua;
        eval q{use LWPx::ParanoidAgent};
        if (! $@) {
-               $ua=LWPx::ParanoidAgent->new;
+               $ua=LWPx::ParanoidAgent->new(agent => $config{useragent});
        }
        else {
-               $ua=LWP::UserAgent->new;
+               $ua=useragent();
        }
 
        # Store the secret in the session.