change handle() to use message-getting helper
darcs-hash:20080924202211-5ed1f-a39e520b113a843bee6dd9e2e56c1a7afb2bb896.gz
This commit is contained in:
parent
59682f24d0
commit
ffeeec392e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user