1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

Pages: get templates from templates folder

This commit is contained in:
Awilum
2018-05-05 01:16:18 +03:00
parent 15e4aff774
commit 5f03adeaf1

View File

@@ -104,7 +104,7 @@ class Pages
*/
public static function renderPage(array $page)
{
Themes::template(empty($page['template']) ? 'default' : $page['template'])
Themes::template(empty($page['template']) ? 'templates/default' : 'templates/' . $page['template'])
->assign('page', $page, true)
->display();
}