Minor update to the way Facebook app handles listing of friends you've invited.
This commit is contained in:
parent
28ef2ccf42
commit
bb13d89642
@ -71,13 +71,13 @@ class FacebookinviteAction extends FacebookAction
|
|||||||
common_config('site', 'name')));
|
common_config('site', 'name')));
|
||||||
$this->element('p', null, _('Invitations have been sent to the following users:'));
|
$this->element('p', null, _('Invitations have been sent to the following users:'));
|
||||||
|
|
||||||
$friend_ids = $_POST['ids']; // XXX: Hmm... is this the best way to acces the list?
|
$friend_ids = $_POST['ids']; // XXX: Hmm... is this the best way to access the list?
|
||||||
|
|
||||||
$this->elementStart('ul', array('id' => 'facebook-friends'));
|
$this->elementStart('ul', array('id' => 'facebook-friends'));
|
||||||
|
|
||||||
foreach ($friend_ids as $friend) {
|
foreach ($friend_ids as $friend) {
|
||||||
$this->elementStart('li');
|
$this->elementStart('li');
|
||||||
$this->element('fb:profile-pic', array('uid' => $friend));
|
$this->element('fb:profile-pic', array('uid' => $friend, 'size' => 'square'));
|
||||||
$this->element('fb:name', array('uid' => $friend,
|
$this->element('fb:name', array('uid' => $friend,
|
||||||
'capitalize' => 'true'));
|
'capitalize' => 'true'));
|
||||||
$this->elementEnd('li');
|
$this->elementEnd('li');
|
||||||
|
Loading…
Reference in New Issue
Block a user