diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 02:12:32 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 02:12:32 +0000 |
commit | 373ff03a2b6315eea13a97065774972ad3713ab6 (patch) | |
tree | df051d2a4c1d150fd75b2f3db2d4647a5e1ebda9 /actions/widgets/save.php | |
parent | 06f0e7b1aa5f6fd393d9a0b580f94709e29e10df (diff) | |
download | elgg-373ff03a2b6315eea13a97065774972ad3713ab6.tar.gz elgg-373ff03a2b6315eea13a97065774972ad3713ab6.tar.bz2 |
Fixes #2753: Default widgets merged into core as extensible admin section and updated to work with new widgets. Will need an upgrade for users running the old default widgets in 1.7.
git-svn-id: http://code.elgg.org/elgg/trunk@8302 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/widgets/save.php')
-rw-r--r-- | actions/widgets/save.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/actions/widgets/save.php b/actions/widgets/save.php index b1649cc17..0a2de0c4d 100644 --- a/actions/widgets/save.php +++ b/actions/widgets/save.php @@ -10,12 +10,15 @@ elgg_set_context('widgets'); $guid = get_input('guid'); $params = get_input('params'); +$default_widgets = get_input('default_widgets', 0); $widget = get_entity($guid); if ($widget && $widget->saveSettings($params)) { elgg_set_page_owner_guid($widget->getContainerGUID()); - $view = "widgets/$widget->handler/content"; - echo elgg_view($view, array('entity' => $widget)); + if (!$default_widgets) { + $view = "widgets/$widget->handler/content"; + echo elgg_view($view, array('entity' => $widget)); + } } else { register_error(elgg_echo('widgets:save:failure')); } |