]> git.mxchange.org Git - friendica.git/blobdiff - mod/nogroup.php
Statusnet is now GNU Social
[friendica.git] / mod / nogroup.php
index 885ba62c6301e4358d3b027c093bf09892f62981..adbcfcb5154d37cbcadd23e1e1c48ede9a0b022b 100644 (file)
@@ -43,30 +43,24 @@ function nogroup_content(&$a) {
                                'id' => $rr['id'],
                                'alt_text' => $alt_text,
                                'dir_icon' => $dir_icon,
-                               'thumb' => $rr['thumb'], 
+                               'thumb' => $rr['thumb'],
                                'name' => $rr['name'],
                                'username' => $rr['name'],
                                'sparkle' => $sparkle,
                                'itemurl' => $rr['url'],
                                'url' => $url,
-                               'network' => network_to_name($rr['network']),
+                               'network' => network_to_name($rr['network'], $url),
                        );
                }
        }
 
        $tpl = get_markup_template("nogroup-template.tpl");
-
-       $includes = array(
-               '$contact_template' => 'contact_template.tpl',
-       );
-       $includes = set_template_includes($a->theme['template_engine'], $includes);
-
-       $o .= replace_macros($tpl,$includes + array(
+       $o .= replace_macros($tpl, array(
                '$header' => t('Contacts who are not members of a group'),
                '$contacts' => $contacts,
                '$paginate' => paginate($a),
-       )); 
-       
+       ));
+
        return $o;
 
 }