- function handle($args)
- {
- parent::handle($args);
-
- if (!common_logged_in()) {
- // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
- $this->clientError(_('Not logged in.'), 403);
- } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
- $this->saveNewMessage();
- } else {
- $this->showForm();
- }
- }
-
- function prepare($args)