aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-02 20:42:09 -0700
committerFriendika <info@friendika.com>2011-06-02 20:42:09 -0700
commit20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4 (patch)
treee9fa5c2a02f7860916931dc723af4dba76852c8c /mod
parent1eb177235bafe63bd021e86a963b5d78f9bd0cd1 (diff)
downloadvolse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.tar.gz
volse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.tar.bz2
volse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.zip
got it wrong - apparently no need to fix json slashes
Diffstat (limited to 'mod')
-rw-r--r--mod/friendika.php2
-rw-r--r--mod/match.php1
-rw-r--r--mod/qsearch.php2
-rw-r--r--mod/uexport.php4
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);
}