Commit 3e830dad authored by Chimo's avatar Chimo

Make Profile::getUri work with Groups

and by extension Profile::getAcctUri
parent d8092207
......@@ -1439,6 +1439,11 @@ class Profile extends Managed_DataObject
$user = User::getKV('id', $this->id);
if ($user instanceof User) {
$uri = $user->getUri();
} else {
$group = User_group::getKV('profile_id', $this->id);
if ($group instanceof User_group) {
$uri = $group->getUri();
}
}
Event::handle('EndGetProfileUri', array($this, &$uri));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment