mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
af88c2daa3
commit
5dfee31108
175 changed files with 2841 additions and 2841 deletions
|
@ -16,8 +16,8 @@ class Probe extends BaseModule
|
|||
public static function content(array $parameters = [])
|
||||
{
|
||||
if (!local_user()) {
|
||||
$e = new HTTPException\ForbiddenException(L10n::t('Only logged in users are permitted to perform a probing.'));
|
||||
$e->httpdesc = L10n::t('Public access denied.');
|
||||
$e = new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.'));
|
||||
$e->httpdesc = DI::l10n()->t('Public access denied.');
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ class Probe extends BaseModule
|
|||
$tpl = Renderer::getMarkupTemplate('probe.tpl');
|
||||
return Renderer::replaceMacros($tpl, [
|
||||
'$addr' => ['addr',
|
||||
L10n::t('Lookup address'),
|
||||
DI::l10n()->t('Lookup address'),
|
||||
$addr,
|
||||
'',
|
||||
'required'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue