diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/friendika.php | 2 | ||||
-rw-r--r-- | mod/match.php | 1 | ||||
-rw-r--r-- | mod/qsearch.php | 2 | ||||
-rw-r--r-- | mod/uexport.php | 4 |
4 files changed, 5 insertions, 4 deletions
diff --git a/mod/friendika.php b/mod/friendika.php index 8bd6e3437..7762bfbb5 100644 --- a/mod/friendika.php +++ b/mod/friendika.php @@ -24,7 +24,7 @@ function friendika_init(&$a) { ); - echo str_replace('\\/','/',json_encode($data)); + echo json_encode($data); killme(); } } diff --git a/mod/match.php b/mod/match.php index 2742b4a88..12138a26c 100644 --- a/mod/match.php +++ b/mod/match.php @@ -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>'; diff --git a/mod/qsearch.php b/mod/qsearch.php index 9b3f2b087..c35e253b6 100644 --- a/mod/qsearch.php +++ b/mod/qsearch.php @@ -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(); } diff --git a/mod/uexport.php b/mod/uexport.php index 96f062c41..e1fb22855 100644 --- a/mod/uexport.php +++ b/mod/uexport.php @@ -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); } |