temporary fix
authordemeritcowboy <demeritcowboy@hotmail.com>
Thu, 21 Dec 2023 04:46:07 +0000 (23:46 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Thu, 21 Dec 2023 04:46:07 +0000 (23:46 -0500)
templates/CRM/common/civicrm.settings.php.template

index 0ebc03e10418864057e5cd7c10288a1ade84a1f3..474ccc01f94973def4c3cdb3d1a91054eeac83d6 100644 (file)
@@ -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');
+    }
   }
 }