From a13b49d0d5851c88636dc12636923e0e31fcde0e Mon Sep 17 00:00:00 2001 From: Belle Aerni Date: Mon, 28 Nov 2022 16:20:21 -0800 Subject: [PATCH] Automatically rename the config from the old name --- src/load.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/load.php b/src/load.php index 086c69d69..98ec58597 100644 --- a/src/load.php +++ b/src/load.php @@ -266,6 +266,11 @@ if ((isset($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST']) || ('cli' === PHP_SA } } +// Rename the old "bb-config" file to the new name if it exists +if(!file_exists($configPath) && file_exists(PATH_ROOT . '/bb-config.php')){ + rename(PATH_ROOT . '/bb-config.php', $configPath); +} + // Try to check if configuration is available if (!file_exists($configPath) || 0 === filesize($configPath)) { // Try to create an empty configuration file