Index: trunk/extensions/OpenID/OpenID.hooks.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | $user = User::newFromName( $nt->getText() ); |
61 | 61 | if ( $user && $user->getID() != 0 ) { |
62 | 62 | $openid = SpecialOpenID::getUserOpenIDInformation( $user ); |
63 | | - if ( count( $openid ) && strlen( $openid[0] ) != 0 ) { |
| 63 | + if ( count( $openid ) && strlen( $openid[0]->uoi_openid ) != 0 ) { |
64 | 64 | global $wgOpenIDShowUrlOnUserPage; |
65 | 65 | |
66 | 66 | if ( $wgOpenIDShowUrlOnUserPage == 'always' || |
— | — | @@ -67,8 +67,8 @@ |
68 | 68 | { |
69 | 69 | global $wgOpenIDLoginLogoUrl; |
70 | 70 | |
71 | | - $url = SpecialOpenID::OpenIDToUrl( $openid[0] ); |
72 | | - $disp = htmlspecialchars( $openid[0] ); |
| 71 | + $url = SpecialOpenID::OpenIDToUrl( $openid[0]->uoi_openid ); |
| 72 | + $disp = htmlspecialchars( $openid[0]->uoi_openid ); |
73 | 73 | $wgOut->setSubtitle( "<span class='subpages'>" . |
74 | 74 | "<img src='$wgOpenIDLoginLogoUrl' alt='OpenID' />" . |
75 | 75 | "<a href='$url'>$disp</a>" . |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | } |
79 | 79 | |
80 | 80 | # Add OpenID data if its allowed |
81 | | - if ( !$wgOpenIDClientOnly && !( count( $openid ) && ( strlen( $openid[0] ) != 0 ) && !$wgOpenIDAllowServingOpenIDUserAccounts ) ) { |
| 81 | + if ( !$wgOpenIDClientOnly && !( count( $openid ) && ( strlen( $openid[0]->uoi_openid ) != 0 ) && !$wgOpenIDAllowServingOpenIDUserAccounts ) ) { |
82 | 82 | $st = SpecialPage::getTitleFor( 'OpenIDServer' ); |
83 | 83 | $wgOut->addLink( array( 'rel' => 'openid.server', |
84 | 84 | 'href' => $st->getFullURL() ) ); |