From 5395178453972dd128ce397abf6d5cdf51c1aac6 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 19 Feb 2021 16:08:02 -0800 Subject: [PATCH] authx - Make it safe to load the 'authx.settings.php' file multiple times --- ext/authx/settings/authx.setting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.25.1