From c6976f686a34661031d0c7bef6cad4c186306f49 Mon Sep 17 00:00:00 2001 From: Ankit Pathak Date: Tue, 30 Apr 2024 12:16:13 +0530 Subject: [PATCH] ACMS-3759: Added fallback if salt.txt file exists. --- settings/misc.settings.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/settings/misc.settings.php b/settings/misc.settings.php index 7e637d5..386bdd9 100644 --- a/settings/misc.settings.php +++ b/settings/misc.settings.php @@ -22,8 +22,7 @@ * $settings['hash_salt'] = file_get_contents('/home/example/salt.txt'); * @endcode */ -$settings['hash_salt'] = file_get_contents(DRUPAL_ROOT . '/../salt.txt'); - +$settings['hash_salt'] = $settings['hash_salt'] ?? file_get_contents(DRUPAL_ROOT . '/../salt.txt'); /** * Deployment identifier. *