more id -> message shenanigans
darcs-hash:20080918025543-5ed1f-c017a351fce611516b18d64724ee2d7977a0bd47.gz
This commit is contained in:
parent
5ff1107fc1
commit
ff5f0a15a6
@ -27,9 +27,9 @@ class ShowmessageAction extends MailboxAction {
|
|||||||
|
|
||||||
Action::handle($args);
|
Action::handle($args);
|
||||||
|
|
||||||
$id = $this->trimmed('id');
|
$id = $this->trimmed('message');
|
||||||
|
|
||||||
$message = Message::staticGet('id', $id);
|
$message = Message::staticGet('message', $id);
|
||||||
|
|
||||||
if (!$message) {
|
if (!$message) {
|
||||||
$this->client_error(_('No such message.'), 404);
|
$this->client_error(_('No such message.'), 404);
|
||||||
@ -50,8 +50,8 @@ class ShowmessageAction extends MailboxAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_message() {
|
function get_message() {
|
||||||
$id = $this->trimmed('id');
|
$id = $this->trimmed('message');
|
||||||
$message = Message::staticGet('id', $id);
|
$message = Message::staticGet('message', $id);
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user