From: Evan Prodromou Date: Sat, 17 Sep 2011 19:08:04 +0000 (-0400) Subject: use correct redirect on logout of single-user site X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b80b0d6520b0488cde309d18da34604cd05b5664;p=quix0rs-gnu-social.git use correct redirect on logout of single-user site --- diff --git a/actions/logout.php b/actions/logout.php index 567d808cd1..4e51271d43 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -73,7 +73,13 @@ class LogoutAction extends Action } Event::handle('EndLogout', array($this)); - common_redirect(common_local_url('public'), 303); + 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); + } } }