projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
302986f
)
CRM-15890 - accomodate js outside of packages
author
Coleman Watts
<coleman@civicrm.org>
Fri, 30 Jan 2015 16:47:44 +0000
(11:47 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 30 Jan 2015 16:47:44 +0000
(11:47 -0500)
CRM/Core/Resources.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Resources.php
b/CRM/Core/Resources.php
index b61edda6e97525435d479d06934657dbe1042262..5064c0589b4dc2c3a8486c04e46f41b790967eff 100644
(file)
--- 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) != 'package
s/');
+ $translate = (substr($file, 0,
3) == 'j
s/');
$this->addScriptFile('civicrm', $file, $jsWeight++, $region, $translate);
}
else {