[MTOS-dev] SubRoutine logout() for MT 3.35
小咔
water.ka at gmail.com
Tue Jul 10 21:34:17 PDT 2007
sub logout {
my $app = shift;
if (my $user = $app->user) {
$app->log($app->translate("User '[_1]' (ID:[_2]) logged out",
$user->name, $user->id));
$user->remove_sessions;
delete $app->{author};
}
$app->clear_login_cookie;
$app->build_page('login.tmpl', {logged_out => 1, no_breadcrumbs => 1});
}
scalar $user an undefined value,Why? ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.sixapart.com/pipermail/mtos-dev/attachments/20070711/7fb64c98/attachment.html
More information about the MTOS-dev
mailing list