From 976df6c8f88cb86ab713528b1c6f2ce3b91f6000 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 2 Jan 2022 16:39:43 +0100 Subject: Rename folder variables to directory --- public/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'public/index.php') 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) { -- cgit v1.2.3