From a624a7e80b089b99f5be4576a5e276fc03771528 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 20 Dec 2023 23:46:07 -0500 Subject: [PATCH] temporary fix --- templates/CRM/common/civicrm.settings.php.template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index 0ebc03e104..474ccc01f9 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -263,7 +263,12 @@ if (!defined('CIVICRM_UF_BASEURL')) { if (!defined('CIVICRM_SMARTY3_AUTOLOAD_PATH')) { // enable by default for dev & demo sites for now - will soon enable by default for all new installs. if (str_contains(CIVICRM_UF_BASEURL, 'localhost') || str_contains(CIVICRM_UF_BASEURL, 'demo.civicrm.org')) { - define('CIVICRM_SMARTY3_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty3/vendor/autoload.php'); + if (is_dir($civicrm_root . '/packages')) { + define('CIVICRM_SMARTY3_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty3/vendor/autoload.php'); + } + elseif (is_dir($civicrm_root . '/../civicrm-packages')) { + define('CIVICRM_SMARTY3_AUTOLOAD_PATH', $civicrm_root . '/../civicrm-packages/smarty3/vendor/autoload.php'); + } } } -- 2.25.1