- // 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));
-
- if (common_config('singleuser', 'enabled')) {
- $user = User::singleUser();
- common_redirect(common_local_url('showstream',
- array('nickname' => $user->nickname)));
- } else {
- 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.'));