]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to get the right class for profileminilist
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 15 Jun 2009 05:07:27 +0000 (22:07 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 15 Jun 2009 05:07:27 +0000 (22:07 -0700)
lib/profilelist.php
lib/profileminilist.php

index e2faf10af48ed16d1fcd5fb08726c90628b6a2fa..bd866bed7e9544397e57150a72f8c044e40a54b0 100644 (file)
@@ -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;
     }
 
index f11cae8a5f4df9d9700091ce4977d5ad1c97e497..0c02e2735e70113ad1045154406c42d177f4e9e0 100644 (file)
@@ -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);