diff --git a/config_repo/allskyDefines.inc.repo b/config_repo/allskyDefines.inc.repo index 2c1978ed9..b1a34f8ea 100644 --- a/config_repo/allskyDefines.inc.repo +++ b/config_repo/allskyDefines.inc.repo @@ -29,6 +29,7 @@ define('ALLSKY_VERSION', 'XX_ALLSKY_VERSION_XX'); define('ALLSKY_STATUS', 'XX_ALLSKY_STATUS_XX'); define('RASPI_CONFIG', 'XX_RASPI_CONFIG_XX'); define('RASPI_ADMIN_DETAILS', 'XX_RASPI_CONFIG_XX/raspap.auth'); +define('CONFIG_UPDATE_STRING', 'XX_NEED_TO_UPDATE_XX'); // Split the placeholder so it doesn't get replaced. if (ALLSKY_HOME == "XX_ALLSKY_HOME" . "_XX") { diff --git a/html/allsky/functions.php b/html/allsky/functions.php index 27be9336e..d469a338a 100644 --- a/html/allsky/functions.php +++ b/html/allsky/functions.php @@ -16,7 +16,6 @@ function initialize() { global $webSettings_array; global $configFilePrefix; - $needToUpdateString = "XX_NEED_TO_UPDATE_XX"; $configurationFileName = "configuration.json"; $retMsg = ""; @@ -32,11 +31,11 @@ function initialize() { return($retMsg); } $webSettings_str = file_get_contents($configuration_file, true); - if (strpos($webSettings_str, $needToUpdateString) !== false) { + if (strpos($webSettings_str, CONFIG_UPDATE_STRING) !== false) { $retMsg .= "
";
$retMsg .= "The '$configurationFileName' file needs to be updated via";
$retMsg .= " the 'Editor' page in the WebUI.";
- $retMsg .= "
Update fields with '$needToUpdateString'";
+ $retMsg .= "
Update fields with '".CONFIG_UPDATE_STRING."'";
$retMsg .= " and check all other entries.";
$retMsg .= "
This Allsky Website will not work until updated.";
$retMsg .= "