From 12d286988dbcdff5aad3620838e7ab777ac67a92 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 14 Oct 2009 20:41:19 +0000 Subject: Standardized actions/* git-svn-id: http://code.elgg.org/elgg/trunk@3542 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/user/spotlight.php | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'actions/user/spotlight.php') diff --git a/actions/user/spotlight.php b/actions/user/spotlight.php index 8f50df2c8..ff111461e 100644 --- a/actions/user/spotlight.php +++ b/actions/user/spotlight.php @@ -1,15 +1,21 @@ spotlightclosed = $closed; - exit; +gatekeeper(); -?> \ No newline at end of file +$closed = get_input('closed','true'); +if ($closed != 'true') { + $closed = false; +} else { + $closed = true; +} + +$_SESSION['user']->spotlightclosed = $closed; +exit; \ No newline at end of file -- cgit v1.2.3