aboutsummaryrefslogtreecommitdiff
path: root/views/json/page/shells
diff options
context:
space:
mode:
Diffstat (limited to 'views/json/page/shells')
-rw-r--r--views/json/page/shells/default.php18
1 files changed, 18 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..d1f86c8a7
--- /dev/null
+++ b/views/json/page/shells/default.php
@@ -0,0 +1,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); \ No newline at end of file