From: Evan Prodromou Date: Mon, 15 Jun 2009 05:07:27 +0000 (-0700) Subject: try to get the right class for profileminilist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee8dd62038993c184b704df08a3ab1fbcf0c04ac;p=quix0rs-gnu-social.git try to get the right class for profileminilist --- diff --git a/lib/profilelist.php b/lib/profilelist.php index e2faf10af4..bd866bed7e 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -61,9 +61,24 @@ 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 f11cae8a5f..0c02e2735e 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);