From e5e325df85ab91656486c4e39491c69ceb59f024 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Mon, 20 Mar 2023 14:15:03 +0700 Subject: [PATCH] Fixing the .env load (#643) --- library/includes/init_bb.php | 3 +-- src/Env.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/library/includes/init_bb.php b/library/includes/init_bb.php index b53d1065d..cf2e5fc23 100644 --- a/library/includes/init_bb.php +++ b/library/includes/init_bb.php @@ -21,8 +21,7 @@ if (PHP_VERSION_ID < 70400) { /** * Define some basic configuration arrays */ -unset($stopwords, $synonyms_match, $synonyms_replace); -$userdata = $theme = $images = $lang = $nav_links = $bf = $attach_config = []; +$userdata = $theme = $images = $lang = $bf = $attach_config = []; $gen_simple_header = false; $user = null; diff --git a/src/Env.php b/src/Env.php index 04a082c11..22de04735 100644 --- a/src/Env.php +++ b/src/Env.php @@ -33,7 +33,7 @@ class Env * * @var RepositoryInterface|null */ - protected static ?RepositoryInterface $repository; + protected static $repository; /** * Enable the putenv adapter.