update comment re openid library version

master
Joey Hess 2010-02-06 15:29:25 -05:00
parent 1af8db763b
commit 03777230ea
1 changed files with 1 additions and 2 deletions

View File

@ -1103,11 +1103,10 @@ sub openiduser ($) {
my $display;
if (Net::OpenID::VerifiedIdentity->can("DisplayOfURL")) {
# this works in at least 2.x
$display = Net::OpenID::VerifiedIdentity::DisplayOfURL($user);
}
else {
# this only works in 1.x
# backcompat with old version
my $oid=Net::OpenID::VerifiedIdentity->new(identity => $user);
$display=$oid->display;
}