Adding global CONFIG_CURRENT_FILE which is available from filters and removing some obsolete stuff

This commit is contained in:
Pavel Shevaev 2023-08-02 14:47:44 +03:00
parent 4105ad80e0
commit 41ba734090
1 changed files with 1 additions and 1 deletions

View File

@ -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)