@@ 456-467 (lines=12) @@ | ||
453 | 'scope' => implode(', ', self::$permissions) |
|
454 | ); |
|
455 | } |
|
456 | if ($user && empty($extra)) { |
|
457 | return self::curr()->redirect($callback); |
|
458 | } else { |
|
459 | return self::curr()->redirect( |
|
460 | $facebook->getLoginUrl( |
|
461 | array( |
|
462 | 'redirect_uri' => $callback |
|
463 | ) |
|
464 | + $extra |
|
465 | ) |
|
466 | ); |
|
467 | } |
|
468 | } |
|
469 | ||
470 | /** |
|
@@ 554-560 (lines=7) @@ | ||
551 | ); |
|
552 | } |
|
553 | ||
554 | if ($user && empty($extra)) { |
|
555 | return self::curr()->redirect($callback); |
|
556 | } else { |
|
557 | return self::curr()->redirect($facebook->getLoginUrl(array( |
|
558 | 'redirect_uri' => $callback, |
|
559 | ) + $extra)); |
|
560 | } |
|
561 | } |
|
562 | ||
563 | public function Login(SS_HTTPRequest $req) |