summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.php8
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;