From d98a7370690b51cf49d65fc9f0bbfb711cccec76 Mon Sep 17 00:00:00 2001 From: Steven Ngesera Date: Thu, 11 Jan 2024 11:27:18 +0200 Subject: [PATCH] Remove forgotten Hm_Environment class usage from framework.php --- config/app.php | 2 +- index.php | 8 ++------ lib/framework.php | 5 +---- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/config/app.php b/config/app.php index a216ec7cb3..0369391058 100644 --- a/config/app.php +++ b/config/app.php @@ -678,7 +678,7 @@ | Handles page layout, login/logout, and the default settings pages. This set | is required. */ - 'modules' => explode(',', env('CYPHT_MODULES')), + 'modules' => explode(',', env('CYPHT_MODULES','core,contacts,local_contacts,ldap_contacts,gmail_contacts,feeds,jmap,imap,smtp,account,idle_timer,desktop_notifications,calendar,themes,nux,developer')), // 'modules' => [ // /* // | ---- diff --git a/index.php b/index.php index 2e3f0bdb53..e980777706 100644 --- a/index.php +++ b/index.php @@ -34,14 +34,10 @@ date_default_timezone_set( 'UTC' ); require VENDOR_PATH.'autoload.php'; - -/* load env files */ -require APP_PATH.'lib/environment.php'; -$environment = Hm_Environment::getInstance(); -$environment->load(); - /* get includes */ require APP_PATH.'lib/framework.php'; +$environment = Hm_Environment::getInstance(); +$environment->load(); /* get configuration */ $config = new Hm_Site_Config_File(); diff --git a/lib/framework.php b/lib/framework.php index f072f40e9f..c4144ed9c5 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -28,6 +28,7 @@ require APP_PATH.'lib/crypt.php'; require APP_PATH.'lib/crypt_sodium.php'; require APP_PATH.'lib/sodium_compat.php'; +require APP_PATH.'lib/environment.php'; require APP_PATH.'lib/db.php'; require APP_PATH.'lib/servers.php'; require APP_PATH.'lib/api.php'; @@ -38,10 +39,6 @@ require VENDOR_PATH.'paragonie/random_compat/lib/random.php'; } -/* load env files */ -$environment = Hm_Environment::getInstance(); -$environment->load(); - /* check for and load the correct libsodium interface */ if (!defined('LIBSODIUM')) { if (extension_loaded('libsodium') && function_exists('\Sodium\crypto_pwhash_str_verify')) {