From 41ba734090bed616881145ebae0bfe80c8734b34 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 2 Aug 2023 14:47:44 +0300 Subject: [PATCH] Adding global CONFIG_CURRENT_FILE which is available from filters and removing some obsolete stuff --- config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.inc.php b/config.inc.php index 95737be..8d5c323 100644 --- a/config.inc.php +++ b/config.inc.php @@ -460,9 +460,9 @@ function _config_invalidate_cache($file, $cache_file) : ConfigCacheEntry if(!$proto_id) throw new Exception("Bad proto_id: {$proto_id}"); + $GLOBALS['CONFIG_CURRENT_FILE'] = $file; $GLOBALS['CONFIG_CURRENT_PROTO_ID'] = $proto_id; $GLOBALS['CONFIG_EXTRAS'] = ConfigCacheEntryExtras::create(); - $GLOBALS['CONFIG_BHL_FUNCS'] = array(); $pres = config_parse(config_base_dirs(), $file); if($pres->error !== 0)