From dec3a1c8fdc77785aab85435397f71c67642e6ce Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Fri, 24 Sep 2021 14:12:36 +1000 Subject: [PATCH] CIVICRM-1804 Suppresses error logging on every page load when open_basedir restriction in effect: File(/CRM/Core/Smarty/plugins/) is not within the allowed path(s) --- CRM/Core/Smarty.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Smarty.php b/CRM/Core/Smarty.php index fa9f36f83c..3f4bd2a93a 100644 --- a/CRM/Core/Smarty.php +++ b/CRM/Core/Smarty.php @@ -98,7 +98,7 @@ class CRM_Core_Smarty extends Smarty { $this->use_sub_dirs = TRUE; $customPluginsDir = NULL; - if (isset($config->customPHPPathDir)) { + if (!empty($config->customPHPPathDir) || $config->customPHPPathDir === '0') { $customPluginsDir = $config->customPHPPathDir . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . -- 2.25.1