From c86d528e93685d80084be9a4a0668382c147f56f Mon Sep 17 00:00:00 2001 From: Sven Date: Wed, 12 Feb 2025 10:15:49 +0100 Subject: [PATCH] define PSM_UPTIME_ARCHIVE Define uptime archive if missing. PHP otherweise throws an error for a missing definition --- src/bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bootstrap.php b/src/bootstrap.php index e6dd3338..a6ba0054 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -121,6 +121,12 @@ namespace { define('PSM_PUBLIC_PAGE', false); } + // check for a uptime archive + // This should be defined in the config + if (!defined('PSM_UPTIME_ARCHIVE')) { + define('PSM_UPTIME_ARCHIVE', 'monthly); + } + $lang = psm_get_conf('language', 'en_US'); psm_load_lang($lang); }