fixed view path

This commit is contained in:
Per Qvarforth 2022-02-13 20:40:56 +00:00
parent 52d55e08c1
commit a1558f687a
1 changed files with 2 additions and 2 deletions

View File

@ -1789,7 +1789,7 @@ function getView($request) {
$view = array_pop($parts);
$dir = array_pop($parts);
if ($view && $dir == 'views') {
$path = "${_SERVER["DOCUMENT_ROOT"]}/public/views";
$path = ROOT . '/public/views';
foreach (scandir($path) as $file) {
if ($file == $view) {
return "$path/$view";
@ -1813,4 +1813,4 @@ function getWebsiteConfig($key) {
}
return null;
}
}