Action::handle($args);
- $id = $this->trimmed('id');
+ $id = $this->trimmed('message');
- $message = Message::staticGet('id', $id);
+ $message = Message::staticGet('message', $id);
if (!$message) {
$this->client_error(_('No such message.'), 404);
}
function get_message() {
- $id = $this->trimmed('id');
- $message = Message::staticGet('id', $id);
+ $id = $this->trimmed('message');
+ $message = Message::staticGet('message', $id);
return $message;
}
}
return $title;
}
-
+
function get_messages($user, $page) {
$message = new Message();
$message->id = $this->trimmed('message');