critical fix
This commit is contained in:
parent
4ea67a3744
commit
45f340e1e3
@ -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']))
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user