From e60b26e166238ee4ae6f7ad3851cb25abca2083d Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Sun, 8 Aug 2010 10:35:24 -0400 Subject: [PATCH] Use the gallery owner's preferences to get a display name --- ansel/templates/group/owner.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansel/templates/group/owner.inc b/ansel/templates/group/owner.inc index e9f2d86b9..df2973b78 100644 --- a/ansel/templates/group/owner.inc +++ b/ansel/templates/group/owner.inc @@ -8,8 +8,8 @@ if ($group == $GLOBALS['registry']->getAuth()) { 'user' => $group )); $custom = $uprefs->getValue('grouptitle'); - $identity = new Horde_Prefs_Identity(array('prefs' => $GLOBALS['prefs'], 'user' => $group)); - $fullname = $identity->getValue('fullname'); + $identity = new Horde_Prefs_Identity(array('prefs' => $uprefs, 'user' => $group)); + $fullname = $identity->getName(); if (!$fullname) { $fullname = $group; } @@ -27,7 +27,7 @@ $link = Horde::link(Ansel::getUrlFor('view', array('groupby' => $groupby, 'view' => 'List'))); $num_galleries = $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->countGalleries($GLOBALS['registry']->getAuth(), Horde_Perms::SHOW, - $group, null, false); + $group, null, false); if ($num_galleries < 5) { $mini_galleries = $GLOBALS['injector']-> getInstance('Ansel_Storage')-> -- 2.11.0