define PSM_UPTIME_ARCHIVE

Define uptime archive if missing. PHP otherweise throws an error for a missing definition
pull/1297/head
Sven 2025-02-12 10:15:49 +01:00 committed by GitHub
parent 601139b866
commit c86d528e93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -121,6 +121,12 @@ namespace {
define('PSM_PUBLIC_PAGE', false); 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'); $lang = psm_get_conf('language', 'en_US');
psm_load_lang($lang); psm_load_lang($lang);
} }