From: Tim Otten Date: Sat, 20 Feb 2021 00:08:02 +0000 (-0800) Subject: authx - Make it safe to load the 'authx.settings.php' file multiple times X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5395178453972dd128ce397abf6d5cdf51c1aac6;p=civicrm-core.git authx - Make it safe to load the 'authx.settings.php' file multiple times --- diff --git a/ext/authx/settings/authx.setting.php b/ext/authx/settings/authx.setting.php index 6a317fe171..e40bfc8233 100644 --- a/ext/authx/settings/authx.setting.php +++ b/ext/authx/settings/authx.setting.php @@ -16,7 +16,7 @@ use CRM_Authx_ExtensionUtil as E; * @package CRM * @copyright CiviCRM LLC https://civicrm.org/licensing */ -function _authx_settings() { +$_authx_settings = function() { $flows = ['param', 'header', 'xheader', 'login', 'auto']; $basic = [ 'group_name' => 'CiviCRM Preferences', @@ -61,9 +61,9 @@ function _authx_settings() { ]; } return $s; -} +}; /** * Settings metadata file */ -return _authx_settings(); +return $_authx_settings();