Template Engine and props to Renderer

move methods and props from App to Renderer
This commit is contained in:
Adam Magness 2018-10-31 13:25:38 -04:00
commit 70f01d6c00
9 changed files with 108 additions and 103 deletions

View file

@ -26,7 +26,7 @@ function vier_init(App $a)
{
$a->theme_events_in_profile = false;
$a->setActiveTemplateEngine('smarty3');
Renderer::setActiveTemplateEngine('smarty3');
if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
vier_community_info();