aboutsummaryrefslogtreecommitdiff
path: root/views/json/page/default.php
blob: d1f86c8a7c3e7d4ecb168ae891c8616bb24d78b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
/**
 * Elgg JSON output pageshell
 *
 * @package Elgg
 * @subpackage Core
 *
 */

if(stristr($_SERVER["HTTP_ACCEPT"],"application/json")) {
	header("Content-Type: application/json");
} else {
	header("Content-Type: application/javascript");
}
// echo $vars['body'];

global $jsonexport;
echo json_encode($jsonexport);