Tweaking request_queue -> group_join_queue, easier to deal with the indexes and keys and caching this way.

This commit is contained in:
Brion Vibber
2011-03-21 15:04:32 -07:00
parent 541dfa04fe
commit a54eb0941e
7 changed files with 73 additions and 61 deletions

View File

@@ -189,11 +189,11 @@ class GroupEditForm extends Form
$this->out->elementStart('li');
$this->out->dropdown('join_policy',
_('Membership policy'),
array(0 => _('Open to all'),
1 => _('Admin must approve all members')),
array(User_group::JOIN_POLICY_OPEN => _('Open to all'),
User_group::JOIN_POLICY_MODERATE => _('Admin must approve all members')),
_('Whether admin approval is required to join this group.'),
false,
(empty($this->group->join_policy)) ? 0 : $this->group->join_policy);
(empty($this->group->join_policy)) ? User_group::JOIN_POLICY_OPEN : $this->group->join_policy);
$this->out->elementEnd('li');
Event::handle('EndGroupEditFormData', array($this));
}