From 9de3b5710719658ef75740c0bd930423cc7c209c Mon Sep 17 00:00:00 2001 From: Kate Arzamastseva Date: Sun, 21 Aug 2011 02:16:39 +0300 Subject: issue #44 uploader fixes, #45 browser testing --- lib/exe/ajax.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/exe/ajax.php') 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); } -- cgit v1.2.3