From b80b0d6520b0488cde309d18da34604cd05b5664 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 Sep 2011 15:08:04 -0400 Subject: [PATCH] use correct redirect on logout of single-user site --- actions/logout.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); + } } } -- 2.39.2