From 4a760cca8ddcb894fe5a05ef0f90f700da3b5a88 Mon Sep 17 00:00:00 2001 From: Mikey O'Toole Date: Mon, 7 Jun 2021 16:50:34 +0100 Subject: [PATCH] Switch table mapping to square bracket array syntax. --- CRM/Admin/Form/Setting/UF.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Admin/Form/Setting/UF.php b/CRM/Admin/Form/Setting/UF.php index 06acdb081a..c59013a076 100644 --- a/CRM/Admin/Form/Setting/UF.php +++ b/CRM/Admin/Form/Setting/UF.php @@ -71,9 +71,9 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting { $dsnArray = DB::parseDSN($dsn); $tableNames = CRM_Core_DAO::getTableNames(); asort($tableNames); - $tablePrefixes = '$databases[\'default\'][\'default\'][\'prefix\']= array('; + $tablePrefixes = '$databases[\'default\'][\'default\'][\'prefix\']= ['; if ($config->userFramework === 'Backdrop') { - $tablePrefixes = '$database_prefix = array('; + $tablePrefixes = '$database_prefix = ['; } // add default prefix: the drupal database prefix $tablePrefixes .= "\n 'default' => '$drupal_prefix',"; @@ -87,7 +87,7 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting { foreach ($tableNames as $tableName) { $tablePrefixes .= "\n '" . str_pad($tableName . "'", 41) . " => '{$prefix}',"; } - $tablePrefixes .= "\n);"; + $tablePrefixes .= "\n];"; $this->assign('tablePrefixes', $tablePrefixes); } -- 2.25.1