Core/(Logs|Cache) -> Site

This commit is contained in:
2022-12-04 13:21:40 +01:00
parent b1059717c7
commit 87f7b44010
12 changed files with 11 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ namespace Core\API\Logs {
}
// get all log entries from filesystem (if database failed)
$logPath = realpath(implode(DIRECTORY_SEPARATOR, [WEBROOT, "Core", "Logs"]));
$logPath = realpath(implode(DIRECTORY_SEPARATOR, [WEBROOT, "Site", "Logs"]));
if ($logPath) {
$index = 1;
foreach (scandir($logPath) as $fileName) {

View File

@@ -8,7 +8,7 @@ namespace Core\API {
abstract class RoutesAPI extends Request {
const ROUTER_CACHE_CLASS = "\\Core\\Cache\\RouterCache";
const ROUTER_CACHE_CLASS = "\\Site\\Cache\\RouterCache";
protected string $routerCachePath;

View File

@@ -45,7 +45,7 @@ namespace Core\API\Template {
return $this->createError("Invalid template file extension. Allowed: " . implode(",", $allowedExtensions));
}
$templateCache = WEBROOT . "/Core/Cache/Templates/";
$templateCache = WEBROOT . "/Site/Cache/Templates/";
$baseDirs = ["Site", "Core"];
$valid = false;