summaryrefslogtreecommitdiff
path: root/lib/profileminilist.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/profileminilist.php')
-rw-r--r--lib/profileminilist.php23
1 files changed, 6 insertions, 17 deletions
diff --git a/lib/profileminilist.php b/lib/profileminilist.php
index 57496d0e9..f11cae8a5 100644
--- a/lib/profileminilist.php
+++ b/lib/profileminilist.php
@@ -47,26 +47,15 @@ define('PROFILES_PER_MINILIST', 27);
class ProfileMiniList extends ProfileList
{
- function show()
+ function newListItem($profile)
{
- $this->out->elementStart('ul', 'entities users xoxo');
-
- $cnt = 0;
-
- while ($this->profile->fetch()) {
- $cnt++;
- if($cnt > PROFILES_PER_MINILIST) {
- break;
- }
- $this->showProfile();
- }
-
- $this->out->elementEnd('ul');
-
- return $cnt;
+ return new ProfileMiniListItem($profile, $this->action);
}
+}
- function showProfile()
+class ProfileMiniListItem extends ProfileListItem
+{
+ function show()
{
$this->out->elementStart('li', 'vcard');
$this->out->elementStart('a', array('title' => $this->profile->getBestName(),