Code standards
This commit is contained in:
parent
310d49b82a
commit
99a33b7335
|
@ -14,7 +14,6 @@ function randprof_init(App $a)
|
||||||
|
|
||||||
if ($x) {
|
if ($x) {
|
||||||
$link = Contact::magicLink($x);
|
$link = Contact::magicLink($x);
|
||||||
// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
|
|
||||||
$a->redirect($link);
|
$a->redirect($link);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2016,8 +2016,7 @@ class App
|
||||||
*/
|
*/
|
||||||
public function redirect($toUrl)
|
public function redirect($toUrl)
|
||||||
{
|
{
|
||||||
if (filter_var($toUrl, FILTER_VALIDATE_URL))
|
if (filter_var($toUrl, FILTER_VALIDATE_URL)) {
|
||||||
{
|
|
||||||
Core\System::externalRedirect($toUrl);
|
Core\System::externalRedirect($toUrl);
|
||||||
} else {
|
} else {
|
||||||
$this->internalRedirect($toUrl);
|
$this->internalRedirect($toUrl);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user