summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorKate Arzamastseva <pshns@ukr.net>2011-08-21 02:16:39 +0300
committerKate Arzamastseva <pshns@ukr.net>2011-08-21 02:16:39 +0300
commit9de3b5710719658ef75740c0bd930423cc7c209c (patch)
treedabecdaa9dc3ed32babcf4623032e0a5e530b0db /lib/exe/ajax.php
parent10799f9c522a9847ebf5f2f7c91d4af7f160e4b8 (diff)
downloadrpg-9de3b5710719658ef75740c0bd930423cc7c209c.tar.gz
rpg-9de3b5710719658ef75740c0bd930423cc7c209c.tar.bz2
issue #44 uploader fixes, #45 browser testing
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index d8754b875..7fcccd4d9 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -268,15 +268,15 @@ function ajax_mediaupload(){
$id = cleanID($id, false, true);
if ($res) $result = array('success' => true,
- 'link' => media_managerURL(array('ns' => getNS($id), 'image' => $id), '&'),
- 'id' => $id);
+ 'link' => media_managerURL(array('ns' => $NS, 'image' => $id), '&'),
+ 'id' => $NS.':'.$id, 'ns' => $NS);
if (!$result) {
$error = '';
if (isset($MSG)) {
foreach($MSG as $msg) $error .= $msg['msg'];
}
- $result = array('error' => $msg['msg']);
+ $result = array('error' => $msg['msg'], 'ns' => $NS);
}
echo htmlspecialchars(json_encode($result), ENT_NOQUOTES);
}