From: Evan Prodromou Date: Wed, 24 Sep 2008 20:22:11 +0000 (-0400) Subject: change handle() to use message-getting helper X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ffeeec392e2bf2f53b2dea39dc8563a4cd6a084e;p=quix0rs-gnu-social.git change handle() to use message-getting helper darcs-hash:20080924202211-5ed1f-a39e520b113a843bee6dd9e2e56c1a7afb2bb896.gz --- diff --git a/actions/showmessage.php b/actions/showmessage.php index 28e3594506..c171ffe0b5 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);