if ($cur->hasBlocked($this->profile)) {
// TRANS: Client error displayed when blocking a user that has already been blocked.
$this->clientError(_('You already blocked that user.'));
- return false;
}
return true;
'submit form_action-primary',
'no',
// TRANS: Submit button title for 'No' when blocking a user.
- _('Do not block this user'));
+ _('Do not block this user.'));
$this->submit('form_action-yes',
// TRANS: Button label on the user block form.
_m('BUTTON','Yes'),
'submit form_action-secondary',
'yes',
// TRANS: Submit button title for 'Yes' when blocking a user.
- _('Block this user'));
+ _('Block this user.'));
$this->elementEnd('fieldset');
$this->elementEnd('form');
}
if (!$result) {
// TRANS: Server error displayed when blocking a user fails.
$this->serverError(_('Failed to save block information.'));
- return;
}
}