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);
|
Action::handle($args);
|
||||||
|
|
||||||
$id = $this->trimmed('message');
|
$message = $this->get_message();
|
||||||
|
|
||||||
$message = Message::staticGet('message', $id);
|
|
||||||
|
|
||||||
if (!$message) {
|
if (!$message) {
|
||||||
$this->client_error(_('No such message.'), 404);
|
$this->client_error(_('No such message.'), 404);
|
||||||
|
Loading…
Reference in New Issue
Block a user