summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-01-02 16:39:43 +0100
committerDaniel Weipert <code@drogueronin.de>2022-01-10 11:29:13 +0100
commit976df6c8f88cb86ab713528b1c6f2ce3b91f6000 (patch)
tree5cb969cb72479c527c79be6de42ebdd7d84e99bc /public
parent9665f430438413391a9a8272d72fccbbe6c7b272 (diff)
Rename folder variables to directory
Diffstat (limited to 'public')
-rw-r--r--public/index.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/public/index.php b/public/index.php
index b7895e7..3d82924 100644
--- a/public/index.php
+++ b/public/index.php
@@ -7,14 +7,14 @@ require_once dirname(__DIR__) . '/vendor/autoload.php';
function findAppConfigFile($path)
{
- $currentFolder = $path;
- while ($currentFolder !== '/') {
- $configFile = $currentFolder . '/config.toml';
+ $currentDirectory = $path;
+ while ($currentDirectory !== '/') {
+ $configFile = $currentDirectory . '/config.toml';
if (file_exists($configFile)) {
return $configFile;
}
- $currentFolder = dirname($currentFolder);
+ $currentDirectory = dirname($currentDirectory);
}
die('config.toml missing');
@@ -24,9 +24,9 @@ $configFile = findAppConfigFile(dirname(__DIR__));
$config = Toml::parseFile($configFile);
chdir(dirname($configFile));
-$contentFolderPath = realpath($config['app']['contentFolderPath']);
-$contentFolderPath === false && die('Content folder "' . $config['app']['contentFolderPath'] . '" missing');
-$config['app']['contentFolderPath'] = $contentFolderPath;
+$contentDirectoryPath = realpath($config['app']['contentFolderPath']);
+$contentDirectoryPath === false && die('Content folder "' . $config['app']['contentFolderPath'] . '" missing');
+$config['app']['contentFolderPath'] = $contentDirectoryPath;
chdir($_SERVER['DOCUMENT_ROOT']);
foreach ($config as $key => $value) {