From 2e965dcf98966f142671b47042252d22adfecb35 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 25 May 2023 18:25:56 +0300 Subject: [PATCH] Removing USE_LZ4_CONFIGS prop dependency --- .gitignore | 1 + config.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e92f57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +tags diff --git a/config.inc.php b/config.inc.php index 4dfd4c4..a393b6f 100644 --- a/config.inc.php +++ b/config.inc.php @@ -242,7 +242,7 @@ function _config_unpack_payload($format, $payload) return config_msgpack_unpack($msg_packed); } -function config_make_standalone_ext_bundle(array $configs, $file_path) +function config_make_standalone_ext_bundle(array $configs, $file_path, $use_lz4 = true) { $cache_entries = array(); foreach($configs as $conf) @@ -261,7 +261,7 @@ function config_make_standalone_ext_bundle(array $configs, $file_path) $cache_entries[] = $entry; } - $packed_data = config_pack_bundle($cache_entries, get('USE_LZ4_CONFIGS')); + $packed_data = config_pack_bundle($cache_entries, $use_lz4); ensure_write($file_path, $packed_data); }