change handle() to use message-getting helper

darcs-hash:20080924202211-5ed1f-a39e520b113a843bee6dd9e2e56c1a7afb2bb896.gz
This commit is contained in:
Evan Prodromou 2008-09-24 16:22:11 -04:00
parent 59682f24d0
commit ffeeec392e

View File

@ -27,9 +27,7 @@ class ShowmessageAction extends MailboxAction {
Action::handle($args);
$id = $this->trimmed('message');
$message = Message::staticGet('message', $id);
$message = $this->get_message();
if (!$message) {
$this->client_error(_('No such message.'), 404);