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.
This commit is contained in:
Yury Pikhtarev 2025-06-17 21:57:07 +04:00
commit 30823dd8de

View file

@ -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();