aboutsummaryrefslogtreecommitdiff
path: root/actions/logout.php
blob: de062edd4162a5f4fa3b9afe2ad3296415763d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
 * Elgg logout action
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 */

// Log out
$result = logout();

// Set the system_message as appropriate
if ($result) {
	system_message(elgg_echo('logoutok'));
} else {
	register_error(elgg_echo('logouterror'));
}