throw new ClientException(_m('No confirmation code.'));
}
- $this->invitation = Invitation::staticGet('code', $this->code);
+ $this->invitation = Invitation::getKV('code', $this->code);
if (!empty($this->invitation)) {
if (!empty($this->invitation->registered_user_id)) {
}
} else {
- $this->confirmation = Confirm_address::staticGet('code', $this->code);
+ $this->confirmation = Confirm_address::getKV('code', $this->code);
if (empty($this->confirmation)) {
// TRANS: Client exception thrown when given confirmation code was not issued.
}
$this->state = self::NEWREGISTER;
} else {
- $this->invitation = Invitation::staticGet('code', $this->code);
+ $this->invitation = Invitation::getKV('code', $this->code);
if (!empty($this->invitation)) {
if (!empty($this->invitation->registered_user_id)) {
// TRANS: Client exception trown when using an invitation multiple times.
$this->state = self::CONFIRMINVITE;
} else {
$this->state = self::CONFIRMREGISTER;
- $this->confirmation = Confirm_address::staticGet('code', $this->code);
+ $this->confirmation = Confirm_address::getKV('code', $this->code);
if (empty($this->confirmation)) {
// TRANS: Client exception thrown when given confirmation code was not issued.