Adding global CONFIG_CURRENT_FILE which is available from filters and removing some obsolete stuff
This commit is contained in:
parent
4105ad80e0
commit
41ba734090
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue