From: Tim Otten Date: Wed, 18 Jan 2023 05:05:41 +0000 (-0800) Subject: shimmy - Remove old boilerplate for registering Smarty folder X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e2fb4c98967e75a08f23ba496d20ada415b6dbea;p=civicrm-core.git shimmy - Remove old boilerplate for registering Smarty folder --- diff --git a/tests/extensions/shimmy/shimmy.civix.php b/tests/extensions/shimmy/shimmy.civix.php index 8ed705ff74..8dc907252c 100644 --- a/tests/extensions/shimmy/shimmy.civix.php +++ b/tests/extensions/shimmy/shimmy.civix.php @@ -98,18 +98,7 @@ function _shimmy_civix_civicrm_config(&$config = NULL) { } $configured = TRUE; - $template = CRM_Core_Smarty::singleton(); - $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - - if (is_array($template->template_dir)) { - array_unshift($template->template_dir, $extDir); - } - else { - $template->template_dir = [$extDir, $template->template_dir]; - } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path);