Skip to content

Commit

Permalink
Merge pull request civicrm#28749 from demeritcowboy/packages-smarty3
Browse files Browse the repository at this point in the history
Alternate to alternate packages path for smarty3
  • Loading branch information
demeritcowboy authored Dec 21, 2023
2 parents 5a4b1f4 + a624a7e commit df3b8ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/CRM/common/civicrm.settings.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}

Expand Down

0 comments on commit df3b8ff

Please sign in to comment.