forked from GNUsocial/gnu-social
Merge branch 'groupspagination' into 1.0.x
This commit is contained in:
commit
794dea4894
@ -350,6 +350,10 @@ class Profile extends Managed_DataObject
|
|||||||
self::cacheSet($keypart, implode(',', $ids));
|
self::cacheSet($keypart, implode(',', $ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_null($offset) && !is_null($limit)) {
|
||||||
|
$ids = array_slice($ids, $offset, $limit);
|
||||||
|
}
|
||||||
|
|
||||||
return User_group::multiGet('id', $ids);
|
return User_group::multiGet('id', $ids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ class ProfileAction extends Action
|
|||||||
// TRANS: H2 text for user group membership statistics.
|
// TRANS: H2 text for user group membership statistics.
|
||||||
$this->statsSectionLink('usergroups', _('Groups'));
|
$this->statsSectionLink('usergroups', _('Groups'));
|
||||||
$this->text(' ');
|
$this->text(' ');
|
||||||
$this->text($this->profile->getGroups()->N);
|
$this->text($this->profile->getGroups(0, null)->N);
|
||||||
$this->elementEnd('h2');
|
$this->elementEnd('h2');
|
||||||
|
|
||||||
if ($groups) {
|
if ($groups) {
|
||||||
|
Loading…
Reference in New Issue
Block a user