Skip to content

Commit

Permalink
fix: restore old reload_config behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed Dec 13, 2024
1 parent 5d72c1f commit 040d285
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,8 @@ class Model {
* @param bool $force_parse Force an entire reparse of the config.xml file instead of the cached config.
*/
public static function reload_config(bool $force_parse = false): void {
config_set_path('', parse_config(parse: $force_parse));
global $config;
$config = parse_config(parse: $force_parse);
}

/**
Expand Down

0 comments on commit 040d285

Please sign in to comment.