* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-if (!defined('STATUSNET')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
exit(1);
}
-require_once INSTALLDIR.'/lib/openid.php';
-
/**
* Logout action class.
*
*/
class LogoutAction extends Action
{
-
/**
* This is read only.
*
{
parent::handle($args);
if (!common_logged_in()) {
+ // 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))) {
}
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);
+ }
}
}
common_real_login(false); // not logged in
common_forgetme(); // don't log back in!
}
-
}