Skip to content

Commit 5651f13

Browse files
authored
fix views path setting
1 parent a4b3cb7 commit 5651f13

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/src/Parser.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ class Parser
3131
protected $twig;
3232

3333
protected $twigEnabled = false;
34+
35+
public $blade;
36+
3437
protected $bladeEnabled = true;
3538

3639
protected $templateData = array();
@@ -104,10 +107,10 @@ public function setTemplatePath ($path, $supRoot = false)
104107

105108
if (!empty($path)) {
106109
$this->templatePath = $path;
107-
if ($this->twigEnabled) {
110+
if ($this->twig) {
108111
$this->twig->setLoader(new Twig_Loader_Filesystem(MODX_BASE_PATH . $path));
109112
}
110-
if ($this->bladeEnabled) {
113+
if ($this->blade) {
111114
$filesystem = new Filesystem;
112115
$viewFinder = new FileViewFinder($filesystem, [MODX_BASE_PATH . $path]);
113116
$this->blade->setFinder($viewFinder);

0 commit comments

Comments
 (0)