aboutsummaryrefslogtreecommitdiff
path: root/actions/logout.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/logout.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/logout.php')
-rw-r--r--actions/logout.php38
1 files changed, 16 insertions, 22 deletions
diff --git a/actions/logout.php b/actions/logout.php
index 67ca6ad65..de062edd4 100644
--- a/actions/logout.php
+++ b/actions/logout.php
@@ -1,25 +1,19 @@
<?php
+/**
+ * Elgg logout action
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg logout action
- *
- * @package Elgg
- * @subpackage Core
+// Log out
+$result = logout();
- * @author Curverider Ltd
-
- * @link http://elgg.org/
- */
-
- // Log out
- $result = logout();
-
- // Set the system_message as appropriate
-
- if ($result) {
- system_message(elgg_echo('logoutok'));
- } else {
- register_error(elgg_echo('logouterror'));
- }
-
-?> \ No newline at end of file
+// Set the system_message as appropriate
+if ($result) {
+ system_message(elgg_echo('logoutok'));
+} else {
+ register_error(elgg_echo('logouterror'));
+} \ No newline at end of file