summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/json.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-08 15:01:38 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-08 15:01:38 -0700
commit9b5e058dd3a7d0d08fa0fad954a1908b9949e934 (patch)
tree0396fe6e2f26a2d4571af04cbb57ba8f81f08d46 /modules/gallery/helpers/json.php
parentab2e2d2d7786f834b26b0330dd2b6f682f23bd96 (diff)
We can always send back the header because Kohana buffers output.
Diffstat (limited to 'modules/gallery/helpers/json.php')
-rw-r--r--modules/gallery/helpers/json.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/gallery/helpers/json.php b/modules/gallery/helpers/json.php
index a39db27a..a88608aa 100644
--- a/modules/gallery/helpers/json.php
+++ b/modules/gallery/helpers/json.php
@@ -25,9 +25,7 @@ class json_Core {
* @param mixed $message string or object to json encode and print
*/
static function reply($message) {
- if (!headers_sent()) {
- header("Content-Type: application/json; charset=" . Kohana::CHARSET);
- }
+ header("Content-Type: application/json; charset=" . Kohana::CHARSET);
print json_encode($message);
}
} \ No newline at end of file