Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
@@ -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.'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user