Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update libraries/joomla/document/json/json.php

Allow the document to be cached if required.
  • Loading branch information...
commit 28fa2cefd08cf9171922b493e3bd7e11b792f580 1 parent 98a39bd
@chrisdavenport chrisdavenport authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  libraries/joomla/document/json/json.php
View
2  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();
Please sign in to comment.
Something went wrong with that request. Please try again.