blob: 202dde387670ea148123ccb944dc6f55d7181889 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
/**
* Close or open spotlight.
*
* @package Elgg.Core
* @subpackage Spotlight
* @todo This is deprecated in 1.8
*/
$closed = get_input('closed', 'true');
if ($closed != 'true') {
$closed = false;
} else {
$closed = true;
}
elgg_get_logged_in_user_entity()->spotlightclosed = $closed;
// exit as this action is called through Ajax
exit;
|