summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/profilelist.php17
-rw-r--r--lib/profileminilist.php5
2 files changed, 20 insertions, 2 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index e2faf10af..bd866bed7 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -62,8 +62,23 @@ class ProfileList extends Widget
function show()
{
+ $this->startList();
+ $this->showProfiles();
+ $this->endList();
+ }
+
+ function startList()
+ {
$this->out->elementStart('ul', 'profiles');
+ }
+ function endList()
+ {
+ $this->out->elementEnd('ul');
+ }
+
+ function showProfiles()
+ {
$cnt = 0;
while ($this->profile->fetch()) {
@@ -75,8 +90,6 @@ class ProfileList extends Widget
$pli->show();
}
- $this->out->elementEnd('ul');
-
return $cnt;
}
diff --git a/lib/profileminilist.php b/lib/profileminilist.php
index f11cae8a5..0c02e2735 100644
--- a/lib/profileminilist.php
+++ b/lib/profileminilist.php
@@ -47,6 +47,11 @@ define('PROFILES_PER_MINILIST', 27);
class ProfileMiniList extends ProfileList
{
+ function startList()
+ {
+ $this->out->elementStart('ul', 'entity users xoxo');
+ }
+
function newListItem($profile)
{
return new ProfileMiniListItem($profile, $this->action);