fixed debug level

This commit is contained in:
Frank Harris 2026-04-29 18:35:19 -04:00
parent b5e550cb5c
commit 49451d9ebb
8 changed files with 96 additions and 23 deletions

View file

@ -59,6 +59,11 @@ $settings = $db->getSettings();
@$GLOBALS['panel_language'] = $settings['panel_language'];
ogpLang();
// Apply debug level from panel settings (overrides the DEBUG_LEVEL constant)
if (defined('DEBUG_MODE') && DEBUG_MODE && function_exists('gsp_apply_debug_level')) {
gsp_apply_debug_level((int)($settings['debug_level'] ?? DEBUG_LEVEL));
}
require_once("includes/view.php");
$view = new OGPView();
$view->setCharset(get_lang('lang_charset'));