summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-24 16:22:11 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-24 16:22:11 -0400
commitffeeec392e2bf2f53b2dea39dc8563a4cd6a084e (patch)
tree89c2125515059591940604112758f46f95515295
parent59682f24d069caa1d46c2277ac9c7417332c6e60 (diff)
change handle() to use message-getting helper
darcs-hash:20080924202211-5ed1f-a39e520b113a843bee6dd9e2e56c1a7afb2bb896.gz
-rw-r--r--actions/showmessage.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/actions/showmessage.php b/actions/showmessage.php
index 28e359450..c171ffe0b 100644
--- a/actions/showmessage.php
+++ b/actions/showmessage.php
@@ -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);