mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
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:
parent
b0230c3598
commit
30823dd8de
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue