diff options
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r-- | lib/exe/ajax.php | 6 |
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); } |