mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00:00
Renamed System::redirect() to $a->redirect()
This commit is contained in:
parent
c46caeb0d3
commit
2ef81108b3
62 changed files with 269 additions and 253 deletions
|
@ -5,6 +5,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\HTTPSignature;
|
||||
|
@ -41,7 +42,7 @@ class Magic extends BaseModule
|
|||
|
||||
if (!$cid) {
|
||||
logger('No contact record found: ' . print_r($_REQUEST, true), LOGGER_DEBUG);
|
||||
goaway($dest);
|
||||
$a->redirect($dest);
|
||||
}
|
||||
|
||||
$contact = DBA::selectFirst('contact', ['id', 'nurl', 'url'], ['id' => $cid]);
|
||||
|
@ -55,7 +56,7 @@ class Magic extends BaseModule
|
|||
}
|
||||
|
||||
logger('Contact is already authenticated', LOGGER_DEBUG);
|
||||
goaway($dest);
|
||||
$a->redirect($dest);
|
||||
}
|
||||
|
||||
if (local_user()) {
|
||||
|
@ -99,10 +100,10 @@ class Magic extends BaseModule
|
|||
$x = strpbrk($dest, '?&');
|
||||
$args = (($x) ? '&owt=' . $token : '?f=&owt=' . $token);
|
||||
|
||||
goaway($dest . $args);
|
||||
$a->redirect($dest . $args);
|
||||
}
|
||||
}
|
||||
goaway($dest);
|
||||
$a->redirect($dest);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -111,6 +112,6 @@ class Magic extends BaseModule
|
|||
return $ret;
|
||||
}
|
||||
|
||||
goaway($dest);
|
||||
$a->redirect($dest);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue