Browse Source

got it wrong - apparently no need to fix json slashes

pull/1/head
Friendika 9 years ago
parent
commit
20d1de4ced
4 changed files with 5 additions and 4 deletions
  1. +1
    -1
      mod/friendika.php
  2. +1
    -0
      mod/match.php
  3. +1
    -1
      mod/qsearch.php
  4. +2
    -2
      mod/uexport.php

+ 1
- 1
mod/friendika.php View File

@ -24,7 +24,7 @@ function friendika_init(&$a) {
);
echo str_replace('\\/','/',json_encode($data));
echo json_encode($data);
killme();
}
}

+ 1
- 0
mod/match.php View File

@ -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>';

+ 1
- 1
mod/qsearch.php View File

@ -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();
}

+ 2
- 2
mod/uexport.php View File

@ -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…
Cancel
Save