forked from GNUsocial/gnu-social
67a347bafb
darcs-hash:20080514145436-84dde-d0994cb35d3fe8545d3f08abeec3cdfe7559c67d.gz
14 lines
259 B
PHP
14 lines
259 B
PHP
<?php
|
|
|
|
class LogoutAction extends Action {
|
|
function handle($args) {
|
|
parent::handle($args);
|
|
if (!common_logged_in()) {
|
|
common_user_error(_t('Not logged in.'));
|
|
} else {
|
|
common_set_user(NULL);
|
|
common_redirect(common_local_url('main'));
|
|
}
|
|
}
|
|
}
|