diff options
Diffstat (limited to 'views/json/page_shells/default.php')
-rw-r--r-- | views/json/page_shells/default.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/json/page_shells/default.php b/views/json/page_shells/default.php new file mode 100644 index 000000000..16cfa3cdd --- /dev/null +++ b/views/json/page_shells/default.php @@ -0,0 +1,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);
\ No newline at end of file |