Commit 794dea48 authored by Evan Prodromou's avatar Evan Prodromou

Merge branch 'groupspagination' into 1.0.x

parents cd6e0a92 cd3bc8f4
......@@ -350,6 +350,10 @@ class Profile extends Managed_DataObject
self::cacheSet($keypart, implode(',', $ids));
}
if (!is_null($offset) && !is_null($limit)) {
$ids = array_slice($ids, $offset, $limit);
}
return User_group::multiGet('id', $ids);
}
......
......@@ -259,7 +259,7 @@ class ProfileAction extends Action
// TRANS: H2 text for user group membership statistics.
$this->statsSectionLink('usergroups', _('Groups'));
$this->text(' ');
$this->text($this->profile->getGroups()->N);
$this->text($this->profile->getGroups(0, null)->N);
$this->elementEnd('h2');
if ($groups) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment