X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fprofilelistitem.php;h=e0e2838f58a3245525405035ad4b3f1eb291130b;hb=c19964094baeb777a1bfd333a94bcb843f525274;hp=e21ff04ebe29209812884756fef389398d2c1253;hpb=a964ea61cd03d887a47cf6238c2e73a8a1837295;p=quix0rs-gnu-social.git diff --git a/lib/profilelistitem.php b/lib/profilelistitem.php index e21ff04ebe..e0e2838f58 100644 --- a/lib/profilelistitem.php +++ b/lib/profilelistitem.php @@ -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()