diff options
author | Sem <sembrestels@riseup.net> | 2012-05-14 02:14:29 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-05-14 02:14:29 +0200 |
commit | ff129471d04449bfddaed793864f161c71ae2573 (patch) | |
tree | 6a9ec35507717a93f36d6566e64fdbd08a4a18fe /actions/reset.php | |
parent | 2665d8f2eaa4fdbcf5790d8a5b9c1afe88e8f5c8 (diff) | |
download | elgg-ff129471d04449bfddaed793864f161c71ae2573.tar.gz elgg-ff129471d04449bfddaed793864f161c71ae2573.tar.bz2 |
Erased flash components.
Diffstat (limited to 'actions/reset.php')
-rw-r--r-- | actions/reset.php | 20 |
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);
|