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

gatekeeper();

$closed = get_input('closed','true');
if ($closed != 'true') {
	$closed = false;
} else {
	$closed = true;
}

$_SESSION['user']->spotlightclosed = $closed;
exit;