if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
// @todo XXX: Add documentation.
-class InviteAction extends CurrentUserDesignAction
+class InviteAction extends Action
{
var $mode = null;
var $error = null;
function sendInvitations()
{
if (Event::handle('StartSendInvitations', array(&$this))) {
-
// CSRF protection
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
foreach ($addresses as $email) {
$email = common_canonical_email($email);
- $other = User::staticGet('email', $email);
+ $other = User::getKV('email', $email);
if ($other) {
if ($user->isSubscribed($other)) {
$this->already[] = $other;
function showInvitationSuccess()
{
if (Event::handle('StartShowInvitationSuccess', array($this))) {
-
if ($this->already) {
// TRANS: Message displayed inviting users to use a StatusNet site while the inviting user
// TRANS: is already subscribed to one or more users with the given e-mail address(es).