fixed view path
This commit is contained in:
parent
52d55e08c1
commit
a1558f687a
|
|
@ -1789,7 +1789,7 @@ function getView($request) {
|
||||||
$view = array_pop($parts);
|
$view = array_pop($parts);
|
||||||
$dir = array_pop($parts);
|
$dir = array_pop($parts);
|
||||||
if ($view && $dir == 'views') {
|
if ($view && $dir == 'views') {
|
||||||
$path = "${_SERVER["DOCUMENT_ROOT"]}/public/views";
|
$path = ROOT . '/public/views';
|
||||||
foreach (scandir($path) as $file) {
|
foreach (scandir($path) as $file) {
|
||||||
if ($file == $view) {
|
if ($file == $view) {
|
||||||
return "$path/$view";
|
return "$path/$view";
|
||||||
|
|
@ -1813,4 +1813,4 @@ function getWebsiteConfig($key) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue