X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fredir.php;h=1d36065e9956ae844842e96d48bf07e2087e46b4;hb=977248f5105a2b3f127d0aa752ce27214605fbf0;hp=4c687e40d328ac88facd3fe9ab19f9bc487f0edb;hpb=b9dba631aadf6c25a97b679808c684276b3dd76a;p=friendica.git diff --git a/mod/redir.php b/mod/redir.php index 4c687e40d3..1d36065e99 100644 --- a/mod/redir.php +++ b/mod/redir.php @@ -1,7 +1,6 @@ $cid, 'uid' => [0, local_user()]]); if (!DBA::isResult($contact)) { - notice(L10n::t('Contact not found.')); + notice(DI::l10n()->t('Contact not found.')); DI::baseUrl()->redirect(); } @@ -120,7 +119,7 @@ function redir_init(App $a) { $a->redirect($url); } - notice(L10n::t('Contact not found.')); + notice(DI::l10n()->t('Contact not found.')); DI::baseUrl()->redirect(); } @@ -135,7 +134,7 @@ function redir_magic($a, $cid, $url) if (!DBA::isResult($contact)) { Logger::info('Contact not found', ['id' => $cid]); // Shouldn't happen under normal conditions - notice(L10n::t('Contact not found.')); + notice(DI::l10n()->t('Contact not found.')); if (!empty($url)) { System::externalRedirect($url); } else { @@ -151,7 +150,7 @@ function redir_magic($a, $cid, $url) // We don't use magic auth when there is no visitor, we are on the same system or we visit our own stuff if (empty($visitor) || Strings::compareLink($basepath, DI::baseUrl()) || Strings::compareLink($contact_url, $visitor)) { Logger::info('Redirecting without magic', ['target' => $target_url, 'visitor' => $visitor, 'contact' => $contact_url]); - System::externalRedirect($target_url); + DI::app()->redirect($target_url); } // Test for magic auth on the target system