Core/(Logs|Cache) -> Site
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user