diff options
| -rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ static function createconfig($p = array()) 'service' => $parts[2], ); - # We store credentials in a service's . "/.env" so they don't need to be in git - foreach (it::match('(\w+)\s*=\s*["\']?(.*?)["\']?$', @it::file_get_contents($GLOBALS['ULTRAHOME'] . "/.env"), ['multiline' => true, 'all' => true]) as $env) + # Add credentials from service's "var/credentials" as static members so they don't need to be in git + foreach (it::match('(\w+)\s*=\s*["\']?(.*?)["\']?$', @it::file_get_contents($GLOBALS['ULTRAHOME'] . "/var/credentials"), ['multiline' => true, 'all' => true]) as $env) $p += [$env[0] => $env[1]]; if (class_exists($p['service'] . "_tools")) |