aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-12 02:15:04 -0700
committerFriendika <info@friendika.com>2011-05-12 02:15:04 -0700
commitdf7a4206b70522bdf3a116433c5e0edac1f43c59 (patch)
treea2c8ffbd8a28fa0f2c2984cf4c13897baf992755
parent6c5482f5358640f937cbd8e0bf0fdadf646b7426 (diff)
downloadvolse-hubzilla-df7a4206b70522bdf3a116433c5e0edac1f43c59.tar.gz
volse-hubzilla-df7a4206b70522bdf3a116433c5e0edac1f43c59.tar.bz2
volse-hubzilla-df7a4206b70522bdf3a116433c5e0edac1f43c59.zip
fix json_encode on url's
-rw-r--r--mod/friendika.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/friendika.php b/mod/friendika.php
index 0347a07a8..c7d8b5b81 100644
--- a/mod/friendika.php
+++ b/mod/friendika.php
@@ -1,6 +1,6 @@
<?php
-function friendika_content(&$a) {
+function friendika_init(&$a) {
if ($a->argv[1]=="json"){
$register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN');
@@ -14,8 +14,6 @@ function friendika_content(&$a) {
$admin = false;
}
-
-
$data = Array(
'version' => FRIENDIKA_VERSION,
'url' => $a->get_baseurl(),
@@ -26,9 +24,14 @@ function friendika_content(&$a) {
);
- echo json_encode($data);
+ echo str_replace('\\/','/',json_encode($data));
killme();
}
+}
+
+
+
+function friendika_content(&$a) {
$o = '';
$o .= '<h3>Friendika</h3>';