- // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
- $this->clientError(_('Not logged in.'));
- } else {
- if (Event::handle('StartLogout', array($this))) {
- $this->logout();
- }
- Event::handle('EndLogout', array($this));
-
- common_redirect(common_local_url('public'), 303);
+ // TRANS: Error message displayed when trying to logout even though you are not logged in.
+ throw new AlreadyFulfilledException(_('Cannot log you out if you are not logged in.'));