diff options
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r-- | actions/widgets/save.php | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php index 945634d97..4af60c7de 100644 --- a/actions/widgets/save.php +++ b/actions/widgets/save.php @@ -1,29 +1,17 @@ <?php /** - * Elgg widget save action + * Elgg save widget settings action * * @package Elgg.Core * @subpackage Widgets.Management */ $guid = get_input('guid'); -$params = $_REQUEST['params']; -$pageurl = get_input('pageurl'); -$noforward = get_input('noforward', false); +$params = get_input('params'); -$result = false; +$result = elgg_save_widget_settings($guid, $params); -if (!empty($guid)) { - $result = save_widget_info($guid, $params); -} - -if ($noforward) { - exit; -} - -if ($result) { - system_message(elgg_echo('widgets:save:success')); -} else { +if (!$result) { register_error(elgg_echo('widgets:save:failure')); } |