]> git.mxchange.org Git - friendica.git/blobdiff - mod/friendika.php
use local 'match people with my interests' if global directory is not configured
[friendica.git] / mod / friendika.php
index f07164f2cbe1fc91117306fd73f877b7c77b0372..7762bfbb52ef7f1d3d57b286327b115057d349e2 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');
 
@@ -8,14 +8,12 @@ function friendika_content(&$a) {
                        $r = q("SELECT username, nickname FROM user WHERE email='%s'", $a->config['admin_email']);
                        $admin = array(
                                'name' => $r[0]['username'],
-                               'profile'=> $a->get_baseurl().'profile/'.$r[0]['nickname'],
+                               'profile'=> $a->get_baseurl().'/profile/'.$r[0]['nickname'],
                        );
                } else {
                        $admin = false;
                }
 
-
-
                $data = Array(
                        'version' => FRIENDIKA_VERSION,
                        'url' => $a->get_baseurl(),
@@ -29,6 +27,11 @@ function friendika_content(&$a) {
                echo json_encode($data);
                killme();
        }
+}
+
+
+
+function friendika_content(&$a) {
 
        $o = '';
        $o .= '<h3>Friendika</h3>';
@@ -59,7 +62,9 @@ function friendika_content(&$a) {
        }
        else
                $o .= '<p>' . t('No installed plugins/addons/apps');
-       
+
+       call_hooks('about_hook', $o);   
+
        return $o;
 
 }