Code Style

This commit is contained in:
Stéphane Goetz
2015-08-02 15:42:23 +02:00
parent 27e0e8780c
commit b1eaa506b2
5 changed files with 20 additions and 6 deletions

View File

@ -82,7 +82,9 @@ class ContentPage extends \Todaymade\Daux\Format\Base\ContentPage
$page['breadcrumb_separator'] = $params['html']['breadcrumb_separator'];
}
$context = ['page' => $page, 'params' => $params];
$template = new Template($params['templates'], $params['theme']['templates']);
return $template->render($this->homepage ? 'theme::home' : 'theme::content', ['page' => $page, 'params' => $params]);
return $template->render($this->homepage ? 'theme::home' : 'theme::content', $context);
}
}