From: Mikey O'Toole Date: Mon, 7 Jun 2021 15:50:34 +0000 (+0100) Subject: Switch table mapping to square bracket array syntax. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4a760cca8ddcb894fe5a05ef0f90f700da3b5a88;p=civicrm-core.git Switch table mapping to square bracket array syntax. --- 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); }