mirror of
https://github.com/friendica/friendica
synced 2025-04-25 08:30:11 +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
|
@ -47,7 +47,7 @@ function user_allow($hash)
|
|||
);
|
||||
|
||||
if ($res) {
|
||||
info(L10n::t('Account approved.') . EOL);
|
||||
info(DI::l10n()->t('Account approved.') . EOL);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -71,19 +71,19 @@ function user_deny($hash)
|
|||
|
||||
Register::deleteByHash($register['hash']);
|
||||
|
||||
notice(L10n::t('Registration revoked for %s', $user['username']) . EOL);
|
||||
notice(DI::l10n()->t('Registration revoked for %s', $user['username']) . EOL);
|
||||
return true;
|
||||
}
|
||||
|
||||
function regmod_content(App $a)
|
||||
{
|
||||
if (!local_user()) {
|
||||
info(L10n::t('Please login.') . EOL);
|
||||
info(DI::l10n()->t('Please login.') . EOL);
|
||||
return Login::form(DI::args()->getQueryString(), intval(Config::get('config', 'register_policy')) === \Friendica\Module\Register::CLOSED ? 0 : 1);
|
||||
}
|
||||
|
||||
if (!is_site_admin() || !empty($_SESSION['submanage'])) {
|
||||
notice(L10n::t('Permission denied.') . EOL);
|
||||
notice(DI::l10n()->t('Permission denied.') . EOL);
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue