mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 09:58:49 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
1eb23e3667
commit
48fecb9a40
71 changed files with 721 additions and 721 deletions
|
@ -35,9 +35,9 @@ function pageheader_addon_admin(App &$a, &$s)
|
|||
|
||||
$t = Renderer::getMarkupTemplate('admin.tpl', __DIR__);
|
||||
$s .= Renderer::replaceMacros($t, [
|
||||
'$title' => L10n::t('"pageheader" Settings'),
|
||||
'$phwords' => ['pageheader-words', L10n::t('Message'), $words, L10n::t('Message to display on every page on this server (or put a pageheader.html file in your docroot)')],
|
||||
'$submit' => L10n::t('Save Settings')
|
||||
'$title' => DI::l10n()->t('"pageheader" Settings'),
|
||||
'$phwords' => ['pageheader-words', DI::l10n()->t('Message'), $words, DI::l10n()->t('Message to display on every page on this server (or put a pageheader.html file in your docroot)')],
|
||||
'$submit' => DI::l10n()->t('Save Settings')
|
||||
]);
|
||||
|
||||
return;
|
||||
|
@ -53,7 +53,7 @@ function pageheader_addon_admin_post(App $a)
|
|||
if (isset($_POST['pageheader-words'])) {
|
||||
Config::set('pageheader', 'text', trim(strip_tags($_POST['pageheader-words'])));
|
||||
}
|
||||
info(L10n::t('pageheader Settings saved.'));
|
||||
info(DI::l10n()->t('pageheader Settings saved.'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue