Index: trunk/extensions/OpenID/SpecialOpenIDServer.body.php |
— | — | @@ -543,9 +543,7 @@ |
544 | 544 | } |
545 | 545 | |
546 | 546 | function SaveValues( $request, $sreg ) { |
547 | | - global $wgSessionStarted, $wgUser; |
548 | | - |
549 | | - if ( !$wgSessionStarted ) { |
| 547 | + if( session_id() == '' ) { |
550 | 548 | wfSetupSession(); |
551 | 549 | } |
552 | 550 | |
Index: trunk/extensions/OpenID/SpecialOpenID.body.php |
— | — | @@ -258,14 +258,14 @@ |
259 | 259 | |
260 | 260 | // Create AX fetch request and add attributes |
261 | 261 | $ax_request = new Auth_OpenID_AX_FetchRequest; |
262 | | - |
| 262 | + |
263 | 263 | foreach($attribute as $attr){ |
264 | 264 | $ax_request->add($attr); |
265 | 265 | } |
266 | 266 | |
267 | 267 | if ($ax_request) { |
268 | 268 | $auth_request->addExtension($ax_request); |
269 | | - } |
| 269 | + } |
270 | 270 | |
271 | 271 | $process_url = $this->scriptUrl( $finish_page ); |
272 | 272 | |
— | — | @@ -316,9 +316,7 @@ |
317 | 317 | } |
318 | 318 | |
319 | 319 | protected function setupSession() { |
320 | | - global $wgSessionStarted; |
321 | | - |
322 | | - if ( !$wgSessionStarted ) { |
| 320 | + if( session_id() == '' ) { |
323 | 321 | wfSetupSession(); |
324 | 322 | } |
325 | 323 | } |