From: Lisa Marie Maginnis Date: Thu, 15 Oct 2015 03:10:17 +0000 (-0400) Subject: reverted js changes back to upstream X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=65a6368e968da53ea0fdf8af44cc82c332c689fc;p=civicrm-core.git reverted js changes back to upstream --- diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 08c3f91512..6a7b2aa5a1 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -342,7 +342,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()) . ';'; } @@ -350,9 +350,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); }