Fix running huge via php shell

This commit is contained in:
2025-11-26 09:29:35 +01:00
parent cf634bd788
commit 60bd4ae03d
4 changed files with 16 additions and 3 deletions

View File

@@ -2,14 +2,13 @@
class Config
{
// this is public to allow better Unit Testing
public static $config;
public static function get($key)
{
if (!self::$config) {
$config_file = '../application/config/config.' . Environment::get() . '.php';
$config_file = __DIR__ . '/../config/config.' . Environment::get() . '.php';
if (!file_exists($config_file)) {
return false;