]> git.mxchange.org Git - friendica.git/blobdiff - mod/uexport.php
cleanup photo menus
[friendica.git] / mod / uexport.php
index fdd7fcec64d4aaf0d1d757c8ddda1c1e0411f6f5..e1fb22855a6066fa8b99336b837f29ef9ebbb0ea 100644 (file)
@@ -38,8 +38,8 @@ function uexport_init(&$a) {
 
        $output = array('user' => $user, 'contact' => $contact, 'profile' => $profile );
 
-       header("Content-type: text/json");
-       echo str_replace('\\/','/',json_encode($output));
+       header("Content-type: application/json");
+       echo json_encode($output);
 
        $r = q("SELECT count(*) as `total` FROM `item` WHERE `uid` = %d ",
                intval(local_user())
@@ -63,7 +63,7 @@ function uexport_init(&$a) {
                }
 
                $output = array('item' => $item);
-               echo str_replace('\\/','/',json_encode($output));
+               echo json_encode($output);
        }