diff options
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 14 |
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) { |