From f8c3dd660fdffb3e9cc48477ceea4b4324057045 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 5 Aug 2020 02:59:06 -0700 Subject: [PATCH] CRM_Core_Region - Remove unnecessary loads 1. String resources support is now loaded every Smarty initializes. Don't need to re-load for every region... 2. We have class-loaders now-a-days... --- CRM/Core/Region.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CRM/Core/Region.php b/CRM/Core/Region.php index 1c3996d940..06cece6bc9 100644 --- a/CRM/Core/Region.php +++ b/CRM/Core/Region.php @@ -48,10 +48,6 @@ class CRM_Core_Region { * @param string $name */ public function __construct($name) { - // Templates injected into regions should normally be file names, but sometimes inline notation is handy. - require_once 'CRM/Core/Smarty/resources/String.php'; - civicrm_smarty_register_string_resource(); - $this->_name = $name; $this->_snippets = []; @@ -223,7 +219,6 @@ class CRM_Core_Region { break; default: - require_once 'CRM/Core/Exception.php'; throw new CRM_Core_Exception(ts('Snippet type %1 is unrecognized', [1 => $snippet['type']])); } -- 2.25.1