summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorschplurtz le déboulonné <schplurtz@laposte.net>2011-10-27 14:14:19 +0200
committerAdrian Lang <mail@adrianlang.de>2011-10-27 14:14:19 +0200
commit6fd41509f28290d217a2c9995341215944d31916 (patch)
tree276d4925c7ad136471ca4f84fe062dc7d2207786 /lib/exe/ajax.php
parent3bc1b86f57f47cd1dc0d9443137e12fc325e304b (diff)
downloadrpg-6fd41509f28290d217a2c9995341215944d31916.tar.gz
rpg-6fd41509f28290d217a2c9995341215944d31916.tar.bz2
Use JSON wrapper in image upload (FS#2345)
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index d4ef8dc11..f8d62cb57 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -281,7 +281,8 @@ function ajax_mediaupload(){
}
$result = array('error' => $msg['msg'], 'ns' => $NS);
}
- echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
+ $json = new JSON;
+ echo htmlspecialchars($json->encode($result), ENT_NOQUOTES);
}
function dir_delete($path) {