Skip to content

Commit

Permalink
Merge pull request cypht-org#863 from Shadow243/forget-to-remove-clas…
Browse files Browse the repository at this point in the history
…s-usage

Remove forgotten Hm_Environment class usage from framework.php
  • Loading branch information
kroky committed Jan 11, 2024
2 parents 319e8d4 + d98a737 commit 6a4d631
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
// /*
// | ----
Expand Down
8 changes: 2 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
5 changes: 1 addition & 4 deletions lib/framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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')) {
Expand Down

0 comments on commit 6a4d631

Please sign in to comment.