CRM-15890 - accomodate js outside of packages
authorColeman Watts <coleman@civicrm.org>
Fri, 30 Jan 2015 16:47:44 +0000 (11:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 30 Jan 2015 16:47:44 +0000 (11:47 -0500)
CRM/Core/Resources.php

index b61edda6e97525435d479d06934657dbe1042262..5064c0589b4dc2c3a8486c04e46f41b790967eff 100644 (file)
@@ -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 {