]> git.mxchange.org Git - friendica.git/commitdiff
fix json_encode on url's
authorFriendika <info@friendika.com>
Thu, 12 May 2011 09:15:04 +0000 (02:15 -0700)
committerFriendika <info@friendika.com>
Thu, 12 May 2011 09:15:04 +0000 (02:15 -0700)
mod/friendika.php

index 0347a07a814ebedae16197dcd047afe1b00d713e..c7d8b5b810f8074677ee2bf718e0d24cb229edb6 100644 (file)
@@ -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>';