Storm patrik Fixes

This commit is contained in:
JonatanRek
2020-04-28 11:43:07 +02:00
parent 57501e2847
commit 2560800efb
10 changed files with 4 additions and 21 deletions

View File

@@ -7,7 +7,7 @@ class Partial{
function __construct($path = "", $debug = false) {
$this->debug = $debug;
if (!empty('../app/templates/part/' . $path . '.phtml') && file_exists('../app/templates/part/' . $path . '.phtml')) {
if (!empty('../app/views/templates/part/' . $path . '.phtml') && file_exists('../app/views/templates/part/' . $path . '.phtml')) {
$this->path = $path;
} else {
echo '<pre>';
@@ -29,6 +29,6 @@ class Partial{
extract($this->assignedValues);
}
require('../app/templates/part/' . $this->path . '.phtml');
require('../app/views/templates/part/' . $this->path . '.phtml');
}
}