diff options
Diffstat (limited to 'actions/user/spotlight.php')
-rw-r--r-- | actions/user/spotlight.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/actions/user/spotlight.php b/actions/user/spotlight.php new file mode 100644 index 000000000..202dde387 --- /dev/null +++ b/actions/user/spotlight.php @@ -0,0 +1,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;
\ No newline at end of file |