From 5409628bfd7cdc1f39a351d1d07a537be1366cb9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 13 Mar 2014 20:29:27 -0400 Subject: [PATCH] CoreResources - code cleanup --- CRM/Core/Resources.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index bb4de4f8fa..180506de14 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -429,9 +429,8 @@ class CRM_Core_Resources { $config = CRM_Core_Config::singleton(); // Add resources from coreResourceList - $files = $this->coreResourceList(); $jsWeight = -9999; - foreach ($files as $file) { + foreach ($this->coreResourceList() as $file) { if (substr($file, -2) == 'js') { // Don't bother looking for ts() calls in packages, there aren't any $translate = (substr($file, 0, 9) != 'packages/'); -- 2.25.1