From: demeritcowboy Date: Thu, 21 Dec 2023 04:46:07 +0000 (-0500) Subject: temporary fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a624a7e80b089b99f5be4576a5e276fc03771528;p=civicrm-core.git temporary fix --- 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'); + } } }