use correct redirect on logout of single-user site

This commit is contained in:
Evan Prodromou 2011-09-17 15:08:04 -04:00
parent fc3d52c120
commit b80b0d6520

View File

@ -73,9 +73,15 @@ class LogoutAction extends Action
}
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);
}
}
}
function logout()
{