aboutsummaryrefslogtreecommitdiff
path: root/views/json/page_shells/default.php
blob: 16cfa3cddb0b5d4c7daf678bd64b4bd2d46379bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Elgg JSON output pageshell
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 *
 */

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);