]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilelistitem.php
Pending subscription requests now work as they should
[quix0rs-gnu-social.git] / lib / profilelistitem.php
index e21ff04ebe29209812884756fef389398d2c1253..e0e2838f58a3245525405035ad4b3f1eb291130b 100644 (file)
@@ -37,7 +37,8 @@ class ProfileListItem extends Widget
     /** Action object using us. */
     var $action = null;
 
-    function __construct(Profile $target, HTMLOutputter $action)
+    // FIXME: Directory plugin sends a User_group here, but should send a Profile and handle User_group specifics itself
+    function __construct($target, HTMLOutputter $action)
     {
         parent::__construct($action);
 
@@ -71,7 +72,7 @@ class ProfileListItem extends Widget
     function startItem()
     {
         $this->out->elementStart('li', array('class' => 'profile',
-                                             'id' => 'profile-' . $this->profile->id));
+                                             'id' => 'profile-' . $this->getTarget()->getID()));
     }
 
     function showProfile()