From 013767801f70f57330459d88fd3fa08c342da493 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 14 Oct 2015 23:10:17 -0400 Subject: [PATCH] reverted js changes back to upstream --- CRM/Core/Resources.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index a46ced18ad..c48bf20a91 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -338,7 +338,7 @@ class CRM_Core_Resources { * @return string */ public function renderSetting() { - /*// On a standard page request we construct the CRM object from scratch + // On a standard page request we construct the CRM object from scratch if (!self::isAjaxMode()) { $js = 'var CRM = ' . json_encode($this->getSettings()) . ';'; } @@ -346,9 +346,7 @@ class CRM_Core_Resources { else { $js = 'CRM.$.extend(true, CRM, ' . json_encode($this->getSettings()) . ');'; } - return sprintf("\n", $js); - */ - $js = 'var CRM = ' . json_encode($this->getSettings()) . ';'; + //return sprintf("\n", $js); return sprintf("\n", $js); } -- 2.25.1