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

Flextype Core: Themes - fixes.

This commit is contained in:
Awilum
2019-05-22 13:09:14 +03:00
parent 462a21a8f1
commit 74a79a5627

View File

@@ -29,7 +29,6 @@ class Themes
public function __construct($flextype)
{
$this->flextype = $flextype;
$this->init($flextype, $app);
}
public function init($flextype, $app)
@@ -98,7 +97,7 @@ class Themes
$templates = [];
// Get templates files
$_templates = Filesystem::listContents(PATH['themes'] . '/' . $this->flextype['registry']->get('settings.theme') . '/views/templates/');
$_templates = Filesystem::listContents(PATH['themes'] . '/' . $this->flextype['registry']->get('settings.theme') . '/templates/');
// If there is any template file then go...
if (count($_templates) > 0) {