From 30823dd8de02ebc5395983e1817dee014eb9b282 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Tue, 17 Jun 2025 21:57:07 +0400 Subject: [PATCH] refactor: update init_bb.php to use config() for configuration management - Replaced the merging of $bb_cfg with a call to config()->merge() for improved clarity and maintainability. - Updated the retrieval of all configuration settings to use config()->all(). This change continues the transition towards a centralized configuration system. --- library/includes/init_bb.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index 932dba5a1..f8f0cd0c2 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -378,7 +378,9 @@ function make_url(string $path = ''): string */ require_once INC_DIR . '/functions.php'; -$bb_cfg = array_merge(bb_get_config(BB_CONFIG), $bb_cfg); +// Merge database configuration with base configuration using singleton +config()->merge(bb_get_config(BB_CONFIG)); +$bb_cfg = config()->all(); $log_action = new TorrentPier\Legacy\LogAction(); $wordCensor = new TorrentPier\Censor();