fix json_encode on url's

This commit is contained in:
Friendika 2011-05-12 02:15:04 -07:00
parent 6c5482f535
commit df7a4206b7

View file

@ -1,6 +1,6 @@
<?php <?php
function friendika_content(&$a) { function friendika_init(&$a) {
if ($a->argv[1]=="json"){ if ($a->argv[1]=="json"){
$register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'); $register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN');
@ -14,8 +14,6 @@ function friendika_content(&$a) {
$admin = false; $admin = false;
} }
$data = Array( $data = Array(
'version' => FRIENDIKA_VERSION, 'version' => FRIENDIKA_VERSION,
'url' => $a->get_baseurl(), 'url' => $a->get_baseurl(),
@ -26,9 +24,14 @@ function friendika_content(&$a) {
); );
echo json_encode($data); echo str_replace('\\/','/',json_encode($data));
killme(); killme();
} }
}
function friendika_content(&$a) {
$o = ''; $o = '';
$o .= '<h3>Friendika</h3>'; $o .= '<h3>Friendika</h3>';