From 7789a8f6216dfcd6b06b02a91ba2d8193a6ab5aa Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 30 Jan 2015 11:47:44 -0500 Subject: [PATCH] CRM-15890 - accomodate js outside of packages --- CRM/Core/Resources.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index b61edda6e9..5064c0589b 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -566,7 +566,7 @@ class CRM_Core_Resources { 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/'); + $translate = (substr($file, 0, 3) == 'js/'); $this->addScriptFile('civicrm', $file, $jsWeight++, $region, $translate); } else { -- 2.25.1