use correct redirect on logout of single-user site
This commit is contained in:
parent
fc3d52c120
commit
b80b0d6520
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user