got it wrong - apparently no need to fix json slashes
This commit is contained in:
parent
1eb177235b
commit
20d1de4ced
4 changed files with 5 additions and 4 deletions
|
@ -24,7 +24,7 @@ function friendika_init(&$a) {
|
|||
|
||||
);
|
||||
|
||||
echo str_replace('\\/','/',json_encode($data));
|
||||
echo json_encode($data);
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@ function match_content(&$a) {
|
|||
|
||||
if(count($j->results)) {
|
||||
foreach($j->results as $jj) {
|
||||
|
||||
$o .= '<div class="profile-match-wrapper"><div class="profile-match-photo">';
|
||||
$o .= '<a href="' . $jj->url . '">' . '<img src="' . $jj->photo . '" alt="' . $jj->name . '" title="' . $jj->name . '[' . $jj->url . ']' . '" /></a></div>';
|
||||
$o .= '<div class="profile-match-break"></div>';
|
||||
|
|
|
@ -44,7 +44,7 @@ function qsearch_init(&$a) {
|
|||
$results[] = array( (int) $rr['id'], 0, $rr['name'],$rr['url'],$rr['photo']);
|
||||
}
|
||||
|
||||
echo str_replace('\\/','/',json_encode((object) $results));
|
||||
echo json_encode((object) $results);
|
||||
killme();
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ function uexport_init(&$a) {
|
|||
$output = array('user' => $user, 'contact' => $contact, 'profile' => $profile );
|
||||
|
||||
header("Content-type: application/json");
|
||||
echo str_replace('\\/','/',json_encode($output));
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue