]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/GroupManager.php
New table "post-counts" to precalculate the counts
[friendica.git] / src / Content / GroupManager.php
index 36765359be268ea4046af91f94fa44d4b33f1891..fc43080d90b5c52c809a339c0eddb906c4089f36 100644 (file)
@@ -78,7 +78,7 @@ class GroupManager
 
                $groupList = [];
 
-               $fields = ['id', 'url', 'name', 'micro', 'thumb', 'avatar', 'network', 'uid'];
+               $fields = ['id', 'url', 'alias', 'name', 'micro', 'thumb', 'avatar', 'network', 'uid'];
                $contacts = DBA::select('account-user-view', $fields, $condition, $params);
                if (!$contacts) {
                        return $groupList;
@@ -87,6 +87,7 @@ class GroupManager
                while ($contact = DBA::fetch($contacts)) {
                        $groupList[] = [
                                'url'   => $contact['url'],
+                               'alias' => $contact['alias'],
                                'name'  => $contact['name'],
                                'id'    => $contact['id'],
                                'micro' => $contact['micro'],
@@ -151,7 +152,7 @@ class GroupManager
                                        '$title'        => DI::l10n()->t('Groups'),
                                        '$groups'       => $entries,
                                        '$link_desc'    => DI::l10n()->t('External link to group'),
-                                       '$New_group_page' => 'register/',
+                                       '$new_group_page' => 'register/',
                                        '$total'        => $total,
                                        '$visible_groups' => $visibleGroups,
                                        '$showless'     => DI::l10n()->t('show less'),