Skip to content

Commit 040d285

Browse files
fix: restore old reload_config behavior
1 parent 5d72c1f commit 040d285

File tree

1 file changed

+2
-1
lines changed
  • pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core

1 file changed

+2
-1
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Core/Model.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ class Model {
675675
* @param bool $force_parse Force an entire reparse of the config.xml file instead of the cached config.
676676
*/
677677
public static function reload_config(bool $force_parse = false): void {
678-
config_set_path('', parse_config(parse: $force_parse));
678+
global $config;
679+
$config = parse_config(parse: $force_parse);
679680
}
680681

681682
/**

0 commit comments

Comments
 (0)