X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnogroup.php;h=adbcfcb5154d37cbcadd23e1e1c48ede9a0b022b;hb=aa9ceabdd9eeec82393e4d5f09aad09c181af33d;hp=885ba62c6301e4358d3b027c093bf09892f62981;hpb=a29842e3019255efd3f91fc01df29f5837d54fa4;p=friendica.git diff --git a/mod/nogroup.php b/mod/nogroup.php index 885ba62c63..adbcfcb515 100644 --- a/mod/nogroup.php +++ b/mod/nogroup.php @@ -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; }