1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 14:16:46 +02:00

Code cleanup and refactoring #5

This commit is contained in:
Awilum
2018-03-13 01:23:08 +03:00
parent 934c47ffbf
commit a23df14472

View File

@@ -83,8 +83,7 @@ class Pages
$template_path = THEMES_PATH . '/' . $site_theme . '/' . $template_name . $template_ext;
if ($this->rawilum['filesystem']->exists($template_path)) {
$this->rawilum['themes']->renderPage($page);
//include $template_path;
include $template_path;
} else {
throw new RuntimeException("Template {$template_name} does not exist.");
}