From 4bb344eb67b17cae58e5400a9adfbc76927707ae Mon Sep 17 00:00:00 2001 From: Michael McMahon Date: Wed, 16 Dec 2020 16:57:12 -0500 Subject: [PATCH] Adding LibreJS back after bundles refactor upstream --- CRM/Core/Region.php | 4 ++-- setup/res/page.tpl.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Region.php b/CRM/Core/Region.php index c7eab5c584..f4d86cee47 100644 --- a/CRM/Core/Region.php +++ b/CRM/Core/Region.php @@ -106,7 +106,7 @@ class CRM_Core_Region implements CRM_Core_Resources_CollectionInterface, CRM_Cor case 'script': if (!$allowCmsOverride || !$cms->addScript($snippet['script'], $this->_name)) { - $html .= sprintf("\n", $snippet['script']); + $html .= sprintf("\n", $snippet['script']); } break; @@ -133,7 +133,7 @@ class CRM_Core_Region implements CRM_Core_Resources_CollectionInterface, CRM_Cor $js = "(function(vars) { if (window.CRM) CRM.$.extend(true, CRM, vars); else window.CRM = vars; })($settingsData)"; - $html .= sprintf("\n", $js); + $html .= sprintf("\n", $js); break; default: diff --git a/setup/res/page.tpl.php b/setup/res/page.tpl.php index 3b3281cf67..42beaf0410 100644 --- a/setup/res/page.tpl.php +++ b/setup/res/page.tpl.php @@ -10,7 +10,7 @@ break; case 'script-code': - printf("", $pageAsset['code']); + printf("", $pageAsset['code']); break; case 'style-url': -- 2.25.1