projects
/
infodrom.org
/
service.infodrom.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve json_return and move it to future
[infodrom.org/service.infodrom.org]
/
src
/
ajax.php
diff --git
a/src/ajax.php
b/src/ajax.php
index
927ce94
..
c8926f4
100644
(file)
--- a/
src/ajax.php
+++ b/
src/ajax.php
@@
-2,13
+2,6
@@
require_once('config.php');
require_once('future.php');
-function json_return($data)
-{
- header('Content-type: application/json; charset="UTF-8"');
- echo json_encode($data);
- exit();
-}
-
$backend = new AJAXBackend();
$data = array();