critical fix

This commit is contained in:
E. S. 2025-04-28 15:14:13 +03:00
parent 4ea67a3744
commit 45f340e1e3
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,8 @@ abstract class RequestHandler
if (!array_key_exists($sub, $config['subdomains']))
throw new InvalidDomainException('invalid subdomain '.$sub);
$globalContext->setProject($config['subdomains'][$sub]);
} else {
$globalContext->setProject($config['project']);
}
if (!in_array($_SERVER['REQUEST_METHOD'], ['POST', 'GET']))

View File

@ -64,7 +64,6 @@ class FileLogger extends Logger
if (!file_exists($this->logFile)) {
$set_perm = true;
$dir = dirname($this->logFile);
echo "dir: $dir\n";
if (!file_exists($dir)) {
mkdir($dir);