Using getter/setter functions
This commit is contained in:
parent
b4aa796e75
commit
8f46064430
14 changed files with 55 additions and 34 deletions
|
@ -58,7 +58,7 @@ function redir_init(App $a) {
|
|||
|
||||
$contact_url = $contact['url'];
|
||||
|
||||
if (!empty($a->contact_id) && $a->contact_id == $cid) {
|
||||
if (!empty($a->getContactId()) && $a->getContactId() == $cid) {
|
||||
// Local user is already authenticated.
|
||||
redir_check_url($contact_url, $url);
|
||||
$a->redirect($url ?: $contact_url);
|
||||
|
@ -73,7 +73,7 @@ function redir_init(App $a) {
|
|||
$cid = $contact['id'];
|
||||
}
|
||||
|
||||
if (!empty($a->contact_id) && $a->contact_id == $cid) {
|
||||
if (!empty($a->getContactId()) && $a->getContactId() == $cid) {
|
||||
// Local user is already authenticated.
|
||||
redir_check_url($contact_url, $url);
|
||||
$target_url = $url ?: $contact_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue