1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

Infrastructure changes: For theme templates we are using templates folder

This commit is contained in:
Awilum
2018-04-22 01:49:30 +03:00
parent d8acf5178e
commit 58cb60988f

View File

@@ -66,7 +66,7 @@ class View
{
// Set view file
// From current theme folder or from plugin folder
if (Filesystem::fileExists($theme_view_file = THEMES_PATH . '/' . Config::get('site.theme') . '/' . $view . '.php')) {
if (Filesystem::fileExists($theme_view_file = THEMES_PATH . '/' . Config::get('site.theme') . '/templates/' . $view . '.php')) {
$this->view_file = $theme_view_file;
} else {
$this->view_file = PLUGINS_PATH . '/' . $view . '.php';