config file can be needed multiple times

This commit is contained in:
Bryan Joshua Pedini 2021-01-05 14:30:51 +01:00
parent 1f7a120a6b
commit e4b41c0944
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
private array $config;
public function __construct(string $config_path = "/config.php") {
require_once(__DIR__."/../..".$config_path);
require(__DIR__."/../..".$config_path);
$this->config = $global_config;
unset($global_config);
}