Refactor files related to the Compose page and frio theme settings

- Use dependencies instead of most DI calls in Module\Item\Compose
- Group translation strings in a subkey of the template variables array
- Rewrite array initializations in theme/frio/config
This commit is contained in:
Hypolite Petovan 2022-10-16 11:24:50 -04:00
parent 7e06127d74
commit d826fe0a3b
4 changed files with 134 additions and 101 deletions

View file

@ -328,7 +328,7 @@ class Conversation
$created_at = '';
}
$tpl = Renderer::getMarkupTemplate("jot.tpl");
$tpl = Renderer::getMarkupTemplate('jot.tpl');
$o .= Renderer::replaceMacros($tpl, [
'$new_post' => $this->l10n->t('New Post'),