diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-01-02 16:39:43 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2022-01-10 11:29:13 +0100 |
commit | 976df6c8f88cb86ab713528b1c6f2ce3b91f6000 (patch) | |
tree | 5cb969cb72479c527c79be6de42ebdd7d84e99bc /src/App.php | |
parent | 9665f430438413391a9a8272d72fccbbe6c7b272 (diff) |
Rename folder variables to directory
Diffstat (limited to 'src/App.php')
-rw-r--r-- | src/App.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/App.php b/src/App.php index b2c877e..b270b02 100644 --- a/src/App.php +++ b/src/App.php @@ -256,9 +256,9 @@ class App public function buildConfig($formPath) { $config = []; - $currentFolder = $formPath; + $currentDirectory = $formPath; while (true) { - $configFile = $currentFolder . '/config/config.toml'; + $configFile = $currentDirectory . '/config/config.toml'; if (file_exists($configFile)) { $parsedConfig = Toml::parseFile($configFile); @@ -267,11 +267,11 @@ class App $config['api']['keys'] = $apiKeys; } - if (str_ends_with($currentFolder, '/' . basename($_ENV['app']['contentFolderPath'])) || $currentFolder == '/') { + if (str_ends_with($currentDirectory, '/' . basename($_ENV['app']['contentFolderPath'])) || $currentDirectory == '/') { break; } - $currentFolder = dirname($currentFolder); + $currentDirectory = dirname($currentDirectory); } return $config; |