default.php 390 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Elgg JSON output pageshell
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['body']
  9. */
  10. header("Content-Type: application/json;charset=utf-8");
  11. echo $vars['body'];
  12. // backward compatibility
  13. global $jsonexport;
  14. if (isset($jsonexport)) {
  15. elgg_deprecated_notice("Using \$jsonexport to produce json output has been deprecated", 1.9);
  16. echo json_encode($jsonexport);
  17. }