aboutsummaryrefslogtreecommitdiff
path: root/actions/reset.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/reset.php')
-rw-r--r--actions/reset.php20
1 files changed, 7 insertions, 13 deletions
diff --git a/actions/reset.php b/actions/reset.php
index 4ea429da6..af6967f37 100644
--- a/actions/reset.php
+++ b/actions/reset.php
@@ -1,15 +1,9 @@
<?php
-
- //action_gatekeeper();
- global $CONFIG;
-
- $result = reorder_widgets_from_panel(null, null, null, 'custom_index_widgets', 2);
- if ($result) {
- system_message(elgg_echo('widgets:save:success'));
- } else {
- register_error(elgg_echo('widgets:save:failure'));
- }
- forward($_SERVER['HTTP_REFERER']);
-
-?> \ No newline at end of file
+$result = reorder_widgets_from_panel(null, null, null, 'custom_index_widgets', 2);
+if ($result) {
+ system_message(elgg_echo('widgets:save:success'));
+} else {
+ register_error(elgg_echo('widgets:save:failure'));
+}
+forward(REFERER);