From 4479d780e5ae6e2c8b63b1f2788ae0316c59ed3e Mon Sep 17 00:00:00 2001
From: Mikael Nordfeldth <mmn@hethane.se>
Date: Mon, 30 Nov 2015 02:21:17 +0100
Subject: [PATCH] List groups with nickname instead of full name in sidebar

---
 lib/groupsnav.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/groupsnav.php b/lib/groupsnav.php
index f047e16a60..738604583c 100644
--- a/lib/groupsnav.php
+++ b/lib/groupsnav.php
@@ -72,9 +72,9 @@ class GroupsNav extends MoreMenu
 
         while ($this->groups instanceof User_group && $this->groups->fetch()) {
             $items[] = array('placeholder',
-                             array('nickname' => $this->groups->nickname,
+                             array('nickname' => $this->groups->getNickname(),
                                    'mainpage' => $this->groups->homeUrl()),
-                             $this->groups->getBestName(),
+                             $this->groups->getNickname(),
                              $this->groups->getBestName()
                             );
         }
-- 
2.39.5