Permalink
Browse files

Merge pull request #1840 from chrisdavenport/patch-1

Update libraries/joomla/document/json/json.php
  • Loading branch information...
2 parents 98a39bd + 28fa2ce commit 5fbac7b17824b735502355b576bb6ee7524cc9bd @dongilbert dongilbert committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/document/json/json.php
@@ -57,7 +57,7 @@ public function __construct($options = array())
*/
public function render($cache = false, $params = array())
{
- JResponse::allowCache(false);
+ JResponse::allowCache($cache);
JResponse::setHeader('Content-disposition', 'attachment; filename="' . $this->getName() . '.json"', true);
parent::render();

0 comments on commit 5fbac7b

Please sign in to comment.