diff options
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r-- | actions/widgets/save.php | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php index c6e06a12f..6fdf79c11 100644 --- a/actions/widgets/save.php +++ b/actions/widgets/save.php @@ -1,38 +1,38 @@ -<?php
-
- /**
- * Elgg widget save action
- *
- * @package Elgg
- * @subpackage Core
+<?php - * @author Curverider Ltd
+ /** + * Elgg widget save action + * + * @package Elgg + * @subpackage Core + + * @author Curverider Ltd + + * @link http://elgg.org/ + */ - * @link http://elgg.org/
- */
-
action_gatekeeper(); -
- $guid = get_input('guid');
- $params = $_REQUEST['params'];
- $pageurl = get_input('pageurl');
- $noforward = get_input('noforward',false);
-
- $result = false;
-
- if (!empty($guid)) {
-
- $result = save_widget_info($guid,$params);
-
- }
-
- if ($result) {
- system_message(elgg_echo('widgets:save:success'));
- } else {
- register_error(elgg_echo('widgets:save:failure'));
- }
-
- if (!$noforward)
- forward($_SERVER['HTTP_REFERER']);
-
+ + $guid = get_input('guid'); + $params = $_REQUEST['params']; + $pageurl = get_input('pageurl'); + $noforward = get_input('noforward',false); + + $result = false; + + if (!empty($guid)) { + + $result = save_widget_info($guid,$params); + + } + + if ($result) { + system_message(elgg_echo('widgets:save:success')); + } else { + register_error(elgg_echo('widgets:save:failure')); + } + + if (!$noforward) + forward($_SERVER['HTTP_REFERER']); + ?>
\ No newline at end of file |