Skip to content

Commit

Permalink
Passes args to updateSettings() backcompat function
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 25, 2023
1 parent e720cce commit f769edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ public static function set(array $settings): void
$GLOBALS['scripturl'] = &self::$scripturl;

eval('function reloadSettings() { return ' . __CLASS__ . '::reloadModSettings(); }');
eval('function updateSettings() { return ' . __CLASS__ . '::updateModSettings(); }');
eval('function updateSettings(...$args) { return ' . __CLASS__ . '::updateModSettings(...$args); }');
eval('function get_auth_secret() { return ' . __CLASS__ . '::getAuthSecret(); }');
eval('function get_settings_defs() { return ' . __CLASS__ . '::getSettingsDefs(); }');
eval('function updateSettingsFile(...$args) { return ' . __CLASS__ . '::updateSettingsFile(...$args); }');
Expand Down

0 comments on commit f769edd

Please sign in to comment.