]> 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 0347a07a814ebedae16197dcd047afe1b00d713e..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');
 
@@ -14,8 +14,6 @@ function friendika_content(&$a) {
                        $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;
 
 }