aboutsummaryrefslogtreecommitdiff
path: root/actions/user/spotlight.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-14 20:41:19 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-10-14 20:41:19 +0000
commit12d286988dbcdff5aad3620838e7ab777ac67a92 (patch)
tree9d73437fbfb39f3f9f3c27852e70ec1f71aed0eb /actions/user/spotlight.php
parent501c0e13cc4db687abb36a937709f8e9de643339 (diff)
downloadelgg-12d286988dbcdff5aad3620838e7ab777ac67a92.tar.gz
elgg-12d286988dbcdff5aad3620838e7ab777ac67a92.tar.bz2
Standardized actions/*
git-svn-id: http://code.elgg.org/elgg/trunk@3542 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/user/spotlight.php')
-rw-r--r--actions/user/spotlight.php30
1 files changed, 18 insertions, 12 deletions
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 @@
<?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;
+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