use two-arg constructor for confirmation code

darcs-hash:20080930130530-5ed1f-48d4d4a503a6bb37c91d828139d652a272b9734a.gz
This commit is contained in:
Evan Prodromou 2008-09-30 09:05:30 -04:00
parent 15a089f46e
commit ce1002c7be

View File

@ -50,7 +50,7 @@ class RecoverpasswordAction extends Action {
function check_code() {
$code = $this->trimmed('code');
$confirm = Confirm_address::staticGet($code);
$confirm = Confirm_address::staticGet('code', $code);
if (!$confirm) {
$this->client_error(_('No such recovery code.'));