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:
221fbb2
)
CRM-17965 - Fix contribution widget on Drupal
author
Coleman Watts
<coleman@civicrm.org>
Sat, 2 Apr 2016 14:02:52 +0000
(10:02 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Sat, 2 Apr 2016 14:02:52 +0000
(10:02 -0400)
extern/widget.php
patch
|
blob
|
blame
|
history
diff --git
a/extern/widget.php
b/extern/widget.php
index 4d7b04eb71a174391d4d903fc5e4936d10726a38..0980e5a448b38457664f921a510c448e7c77d355 100644
(file)
--- a/
extern/widget.php
+++ b/
extern/widget.php
@@
-56,6
+56,10
@@
$output = '
var ' . $jsonvar . ' = ' . json_encode($data) . ';
';
-CRM_Core_Page_AJAX::setJsHeaders(60);
+// FIXME: Not using CRM_Core_Page_AJAX::setJsHeaders because CMS is not bootstrapped
+header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 60));
+header('Content-Type: application/javascript');
+header("Cache-Control: max-age=60, public");
+
echo $output;
CRM_Utils_System::civiExit();