Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-social
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
194
Issues
194
List
Boards
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-social
Commits
794dea48
Commit
794dea48
authored
Sep 30, 2011
by
Evan Prodromou
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'groupspagination' into 1.0.x
parents
cd6e0a92
cd3bc8f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
classes/Profile.php
classes/Profile.php
+4
-0
lib/profileaction.php
lib/profileaction.php
+1
-1
No files found.
classes/Profile.php
View file @
794dea48
...
...
@@ -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
);
}
...
...
lib/profileaction.php
View file @
794dea48
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment