got it wrong - apparently no need to fix json slashes

This commit is contained in:
Friendika 2011-06-02 20:42:09 -07:00
parent 1eb177235b
commit 20d1de4ced
4 changed files with 5 additions and 4 deletions

View file

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

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

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

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